Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffering: why optimistic?
Message
De
17/12/1998 17:16:38
 
 
À
07/12/1998 06:21:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00163932
Message ID:
00168710
Vues:
31
>But this might be what I call process locking... you only wan't to allow one user at a time to carry out a certain task. This can be done quite simply with an extra field in the user table called "process". A form, or any process which can only be processed by one user at a time can be given a unique name/identifier programmatically and stored in that users "process" field. Before this is allowed you check the user file to make sure that no other user is undertaking that same process. The advantage is that you can advise the user "You can't do this just now because John Brown is doing it" - something that's much more difficult with record locks. Just clear the field when finished.

>If you don't have a user table create a ddummy one and assign psuedo userids at login to your system.

Denise,

To add a note to David's explanation... Its also simple using his method to devise code that will advise the prospective user when the record is once again free. That way the prospective user does not have to check back repeatedly to find out if he/she may commence editing or whatever he/she wants the record for.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform