Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing object status in midstream?
Message
De
16/10/2000 15:40:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00429884
Message ID:
00429979
Vues:
16
>Well, if you use pessimistic locking in your application, there are functions in VFP that allow to check if record is locked by another user. Than you can do this in timer event and refresh status of controls on form accordingly.

Even without a timer, if he employs a button which specifically starts an edit, he can run the checking from the button's click.
Another way would be to have some common code to be called from any control's .InteractiveChange event, which would check for a property... mmm, let's say ThisForm.WeGotItLocked, and another one, ThisForm.SomeoneLockedIt. So if both are .f. (as they should initially be), we'd try to lock. Succeeding or failing, we'd set one of them, and allow or disable further editing accordingly.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform