Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique key generator
Message
From
05/01/2000 03:28:42
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00312803
Message ID:
00313079
Views:
43
I was wondering as the code seems Ok but as already suggested by others there are better alternatives, if the problem doesn't come from the fact the user tries to push escape (he will usually push it several times as he may not get immediate reaction) when he gets 'Attemting to lock ... Esc to cancel'. It depends on how the escape key is handled but I wouldn't be suprised that he gets the cancel, ignore, help messagebox. If he hits ignore, he WILL pass by the FLOCK() and get a next key (remember a locked table remains readable to other users !!!)
My guess is : use RLOCK where the record is not readable nor writeable, but I don't if this would completely resolve the problem ...
Previous
Reply
Map
View

Click here to load this message in the networking platform