Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is RESOURCE file sharable?
Message
De
14/06/1997 17:34:08
 
 
À
14/06/1997 11:44:33
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00036163
Message ID:
00036404
Vues:
48
>>> 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
Vladimir Batrack
E-mail: vnb@writeme.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform