Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catching error CA RecordRefresh()
Message
From
21/11/2011 09:43:55
 
 
To
21/11/2011 09:40:02
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01529369
Message ID:
01529370
Views:
35
>Hi,
>
>If a call to CursorAdapter RecordRefresh() returns .F., how can I catch the description of the problem? TIA.


From HELP:
Use the AERROR( ) function to determine the cause of failure of the RecordRefresh method. The ON ERROR Command and TRY...CATCH...FINALLY Command cannot be used to determine the cause of RecordRefresh method errors.

So:
IF CursorAdapter.RecordRefresh() < 0
   AERROR(laError)
   MessageBox(laError[1,2])
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform