Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOPEN() to go exclusive
Message
 
To
02/08/2003 12:19:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00816200
Message ID:
00816205
Views:
21
>>Have you tried using FILE() to check for the file?
>
>Yes, this is a simplified version of the code. In the code here, we have IF FILE()... before ERASE. However, it is so close that even if IF FILE()... succeeds, by the time it reaches the ERASE line, it's too late.

What about using TRY ...CATCH if you are using VFP 8 or ON ERROR in VFP 7 or lower. If one or more users detected the presence of the file, the first one is going to fail to ERASE (then ignore error) , the second should succed...
Nelson F. Marmol
www.softland-inc.com

"Beware of programmers who carry screwdrivers."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform