>>
>>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