Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is RESOURCE file sharable?
Message
From
14/06/1997 11:44:33
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00036163
Message ID:
00036372
Views:
41
>> 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.
L.A.Long
ProgRes
lalong1@charter.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform