Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRY...Catch problem
Message
From
02/10/2014 02:33:01
 
 
To
01/10/2014 18:12:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01608628
Message ID:
01608649
Views:
56
You clearly fail to realize that Flock() is not a command, it's a function.
Commands raise errors, which you can trap with a Try-Catch-Endtry construct.
Functions return a value, .T. or .F. for Flock(), which you can trap with a If-Else-Endif construct.

>
>Thanks to all for all the help.
>
>Based on my testing, I think I want to use SET REPROCESS TO 1.
>
>In this case, if the other program said USE foo EXCL, I will get a 1705 error. If the other program said USE foo shar, flock(), I will get a 108 error.
>
>If, however, I use the SET TABLEVALIDATE TO 0, then if the other program said USE foo EXCL, I will get a 1705 error, but if the other program said USE foo SHAR, flock(), then VFP allows me to proceed without error!. This not what I want!
>
>Thanks again for the help
Previous
Reply
Map
View

Click here to load this message in the networking platform