Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try/Catch
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00802432
Message ID:
00802532
Views:
30
>How about the following?
>
>
ON ERROR lError = .T.
>lError = .F.
>
>USE table1 EXCLUSIVE IN 0
>
>IF NOT lError
>   USE table2 EXCLUSIVE IN 0
>
>   IF NOT lError
>      USE table3 EXCLUSIVE IN 0
>   ENDif
>ENDif
>
>IF lError
>   ? "Could not get exclusive use of all tables."
>ENDif
I would discourage this. In pre-VFP8 apps, this was often required. But this is a very risky technique. What if someone comes along later and adds an Error() method to this?

Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform