>>>> If I want to have a default resource file in a multi-user environment,
>>>>
>>>> 1)Make a copy of the desired resource file (foxuser.*) to something like
>>>> resofil.*
>>>> 2)Make resofil.* readonly
>>>> 3)Put "RESO=OFF" in config.fpw
>>>> 4)Upon entering the application
>>>>
>>>> 5)Upon exiting program
>>>>
>>>> SET RESO OFF
>>>> ERASE (mResoFile+'.DBF')
>>>> ERASE (mResoFile+'.FPT')
>>>
>>>Do you have some code to clean up the files that are left around if your
>>>application bombs (not that that would ever happen ) or if the
>>>workstation freezes?
>>>
>>>/Paul
>>Borrowing an idea from someone else, you could use a table containing valid logins. When you add a person to the login table you would create a subdirectory (possibly matching the user's initials) and copy the default resource file to that directory. Then when a person logs in just use the resource file in his/her subdirectory. This way the user will always have his/her last preferences saved and no problems with extra files if a lock up occurs.
>
>You know that's obviously. The main problem is to let each user
>to run several EXE at the same time and use one (the only for each
>person) RESOURCE file.
>
>BRGD
Nope. The resource file is opened exclusive for each application. Still another reason why I SET RESOURCE OFF in my apps.
Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer