Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lock access to a table
Message
 
 
To
27/08/2007 12:39:39
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01250664
Message ID:
01250676
Views:
14
>>
>>lnAttempts = 0
>>#define MAX_ATTEMPTS 1000
>>do while Proc_Lock.Locked or m.lnAttempts < MAX_ATTEMPTS
>>   lnAttempts = m.lnAttempts + 1
>>enddo
>>
>>if not Proc_Lock.Locked
>>   * Do your stuff
>>endif
>
>Thanks!
>
>Why use DEFINE here? Is it because it is a constant that isn't expected to change at runtime?

Yes, for things like these I prefer to use constants.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform