Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I know if a dbf file is in use by another user on
Message
From
26/07/2007 14:40:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/07/2007 07:38:25
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01243688
Message ID:
01243902
Views:
22
>I am using vfp 6.0 sp3
>
>In the meanwhile I am testing this code and it appears to be working fine.
>
>
>onerror = on("error")
>noerror = .t.
>on error noerror = .f.
>use excl csf\tscmpms
>on error &onerror
>if noerror
> ...
> ...
> ...
>endif
>
>
>Thanks

Yeah, that is the best way. As Tore says, it is easier in VFP 9. But the point is, to get any resource outside the system, several things can go wrong, so in principle, you should have 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