Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot access the selected table
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356267
Message ID:
01356301
Views:
24
It doesn't actually produce an error which was why in the first place I couldn't trap it. How would I invoke your method? Does the prg need to be suspended?


>LOCAL lcError, lcMessage, llError
>
>LOCAL ARRAY laError
>
>llError = .f.
>* stop error handling
>lcError = ON ("ERROR" )
>
>ON ERROR llError= .t..
>
>* access your table
>
>IF llError
> AERROR( laErrorArray )
> * look in array to find what error it is
> lcMessage = laError[3]
>ENDIF
>
>* reset error handler
>ON ERROR &lcError
>
>* do something
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform