good day! i have been a foxpro2.5 programmer for a very long time now, about
9 years, im now into vfp, and would like to apply all of my theories to this
new programming platform, or at least if not that do-able, may find other
ways using the same language, stretching it out....

as i read on books on the language, would somebody please tell me the
advantages of using Resource files... i've read some info's on this feature
but i cant get a clearer picture on using it at it's fullest functionality,
when and where to tap its use...

hope experts could help me, a million thanks!

yong

Re: About Resource Files by Eric

Eric
Mon Oct 25 01:00:08 CDT 2004

Hello, Yong!
You wrote on Sun, 24 Oct 2004 20:57:02 -0700:

YM> as i read on books on the language, would somebody please tell me the
YM> advantages of using Resource files... i've read some info's on this
YM> feature but i cant get a clearer picture on using it at it's fullest
YM> functionality, when and where to tap its use...

YM> hope experts could help me, a million thanks!

Resource files store information about window sizes and position and all
kinds of other things... I only use resource files at design time. At
runtime, I block them by using the RESOURCE=OFF setting in the config.fpw
because they can crash an app when they get corrupted.
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: About Resource Files by YongMallare

YongMallare
Mon Oct 25 16:35:10 CDT 2004

what would usually corupt this file? i've also read about some of the nice
features of this file, it saves and retains the previous settings of a
window. would that be of different settings for every user of my application?
is there a mechanism to restore this file if ever it gets corrupted? i've
read some of the posts here, most of us do disable this feature during
runtime. a million thanks sirs.

yong




"Eric den Doop" wrote:

> Hello, Yong!
> You wrote on Sun, 24 Oct 2004 20:57:02 -0700:
>
> YM> as i read on books on the language, would somebody please tell me the
> YM> advantages of using Resource files... i've read some info's on this
> YM> feature but i cant get a clearer picture on using it at it's fullest
> YM> functionality, when and where to tap its use...
>
> YM> hope experts could help me, a million thanks!
>
> Resource files store information about window sizes and position and all
> kinds of other things... I only use resource files at design time. At
> runtime, I block them by using the RESOURCE=OFF setting in the config.fpw
> because they can crash an app when they get corrupted.
> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
>
>
>

Re: About Resource Files by Stefan

Stefan
Tue Oct 26 06:58:52 CDT 2004


"Yong Mallare" <YongMallare@discussions.microsoft.com> schrieb im Newsbeitrag
news:41E51191-BC6F-4499-A8F3-5C173A8E27C9@microsoft.com...
> what would usually corupt this file?

Crashes, first of all. At designtime with Set Resource On the
foxuser.* is always open and the IDE tries to write things there,
On Shutdown for example, which might cause corruptions during
GPFs etc.

> i've also read about some of the nice features of this file, it saves
> and retains the previous settings of a window

Yes, but foxuser only cares for IDE windows and toolbars etc..
So at runtime, in yourproject.exe there won't be much, except
rare things like Report Preview toolbar, Query Designer if any.


> . would that be of different settings for every user of my application?
> is there a mechanism to restore this file if ever it gets corrupted?

You can save a copy and restore from that. When you include the
file with your project, if you need it at all, it will be read-only and most
likely stay intact.
A typical scenario might be having Set('Resource') = 'off' usually
and when it comes to a report preview
Set Resource To <my_included.dbf>
Report Form xy Preview
Set Resource To


hth
-Stefan