Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If file is used by another exclusively
Message
From
13/11/2008 21:28:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/11/2008 21:16:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01361833
Message ID:
01361839
Views:
13
>Sorry, using v.7.0

The situation is quite similar; but instead of using TRY/CATCH you have to use ON ERROR.

The point is, when accessing anything outside your application, many things can go wrong. The table might not exist, the user may not have sufficient privileges in the folder, or, of course, the file may be in use. So, it makes sense to do some error checking.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform