Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for Valid DBF Before USE?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01182006
Message ID:
01182007
Views:
12
>I have automated applications, and they USE tables created by other applications. Occasionally, these tables are invalid, causing my VFP application to hang. Is there a way to check for a valid table before attempting to USE it? Or, is there a way to trap the invalid table error? I've been unable to track down the error trapping approach.
>
>Thank you!
>
>---Michael
TRY
	USE MYTABLE
CATCH
	=MESSAGEBOX(MESSAGE())
ENDTRY
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform