Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record locking??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00439935
Message ID:
00440142
Vues:
14
>hi guys
>i have an app running on a small offic network. some days all the folks can use it together and sometimes not. i know that the folks using it aren't using the same record and i have a function for record locking (below) which should warn folks if they try the same record, but it never gets displayed - the screen just hangs until anyone else in that section goes back to the main menu then it unhangs itself and carries on as if there is no problem - and i don't have an answer. the program and data files are on a machine with w2k and the other machines (w98) have a shortcut on the desktop that fire it up off the w2k machine. any help will me most appreciated!
>func reclok
>do while !rlock()
>messagebox('Record is in use - please be patient...',etc, etc, etc
>enddo
>
>tia - john

In addition to Larry's reply, what we do here is to simply check once for the lock. If the record a user wants is locked by another, we display a padlock icon and disable all the controls on the form. That way, the user can at least look at the contents of the record. They can also attempt to retrieve it at some later time when it might be unlocked. The only point here is that where you tie up the user in your loop, the user in our app can view the locked record's data or go to some other task within the app.

Steve
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform