Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dbused in other work area
Message
From
13/01/2008 12:17:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/01/2008 12:09:17
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01281470
Message ID:
01281471
Views:
6
>Hi
>I want to check if the database open.
>When I used with 'dbused' I get .f. (not open) even when it's open by other user network.
>PS
>There is such command for check if tables exclusive?

Several things can go wrong when opening a table or database - some examples are, file does not exist, network not accesible, used by other users. Therefore, I suggest you use error handling - TRY...CATCH or ON ERROR.
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