Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check a table is opened before use the table ?
Message
From
13/01/2006 10:59:13
 
 
To
13/01/2006 04:28:11
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01086459
Message ID:
01086547
Views:
18
I would put it in a TRY - ENDTRY construct:
TRY
     USE (lcDBFName) IN 0 AGAIN ALIAS mydbf SHARED
CATCH TO loException
     ...Error occurred
ENDTRY
IF USED('mydbf')
    SELECT mydbf
    ...Continue with code
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform