Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is RESOURCE file sharable?
Message
De
16/06/1997 10:40:59
 
 
À
16/06/1997 10:37:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00036163
Message ID:
00036513
Vues:
46
>>>>> 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

The key is to install exe locally and you shouldn't care about resource file sharing: every user will have own one.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform