Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to verify table can be opened exlcusive
Message
From
04/02/2007 06:20:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/02/2007 06:10:47
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01192195
Message ID:
01192196
Views:
21
>Hi, I need to run a scheduled mainteance routine to reindeix all the tables after operating hours. I need to use the table exclusively in order to reindex. I have problem knowing whether the table has been used by user before issuing the command "use mytable exclusive".
>
>Any suggestion?
>
>Thanks
>
>james

The simplest solution would be TRY and CATCH. I don't remember whether that was introduced in VFP 8 or 9; for older versions, use 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
Next
Reply
Map
View

Click here to load this message in the networking platform