Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rlock() / isrlocked()
Message
 
À
02/01/1998 12:41:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00068858
Message ID:
00068960
Vues:
55
Jim,

Please don't shoot the messenger!

I disagree that the function is "useless" as I have used it on occasion when I am obtaining multiple records locvks generically and I need to know if I have already locked a record or if a lock I previously obtained is still in effect (htis would be because the code is generic and may or may not have run certain routines between the two points).

When I respond to message here or anywhere else I am not interested in explaining why MS does what it does or what MS should do, I am interested in explaining how something works so that folks can get on with their work and be productive with the tool.

As you have said the help is not clear that this is how it works, the help also does not say that the function tells you if there is any lock at any station either. The help is vague.

I would propose that IsRlocked() would be useless if it worked the other way as it does not tell you anything about whtehr you can or cannot get a lock. IsRlocked() (as you would have it work) could return .F. and the very next line of code could fail on a lock attempt (because someone else got the lock between the two lines of code). Ther is only one way to kow if you can get a lcok regardless of what functions any language has in it, that is to GET THE LOCK, if you can yo will and if you can't you won't.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform