Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Name of Corrupted Table
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00620310
Message ID:
00620344
Views:
12
In some cases you can use message(1) VFP function:

As in Help:
"If MESSAGE( ) is used in an ON ERROR routine, include this argument to return the program source code that caused the error. If the program source code isn't available, MESSAGE(1) returns one of the following:

The entire program line if the line is macro substituted.
A command if the line contains a command without any additional clauses.
A command followed by three dots (...) if the line contains a command and additional clauses. "


Also you could write the custom onerror routine, that invokes on error message "Not a table" and search this file among tables used in the application.

>Is there a technique to return the name of a corrupted table. VFP only reports error "Not a table" and I need to give the user something that they can use to recover.
>
>Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform