Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping a record in Read Only Mode on a Network
Message
De
20/12/1998 16:36:13
 
 
À
20/12/1998 12:58:02
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00169247
Message ID:
00169257
Vues:
22
>Could someone suggest an approach for keeping a record in Read-Only mode for all subsequent users? This assumes that a user already is viewing the record and possibly making changes. What I want to do is allow a user to access a record, setting all fields to read/write. Another user comes along and gets a message that the record is being edited by someone else, and is NOT allowed to switch all text fields to read/write. They remain READ only, but viewable.
>
>thanks

Using the user table I have a function Users.onlyuser('something') that only allows one user to do something. Returns .F. is someone is already doing 'something'. Implement simply by writing 'something' into a field in the user file. This field should be cleared on log off and log on!

Then you simply call this function in your grid code to determine read/write ability etc. And it's useful in many multiuser situations.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform