Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping a record in Read Only Mode on a Network
Message
From
20/12/1998 16:36:13
 
 
To
20/12/1998 12:58:02
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00169247
Message ID:
00169257
Views:
17
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform