Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap connection errors
Message
From
02/09/1998 12:08:14
 
 
To
02/09/1998 09:01:03
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00132046
Message ID:
00132420
Views:
15
That's right. ODBC errors, which have a type of 1526, get picked up by AERROR() but not by the error handler. I'm wondering if the DispWarnings property works only on remote views created in a VFP database and not in remote views created in code.


>Hmm. I'm perplexed. Do you mean that if you set ON ERROR TO some function of your own that it doesn't get called when you violate index uniqueness?
>
>>Thanks, Nancy. That's what I'd like to accomplish, but VFP's ON ERROR handler doesn't trap type 1526 errors. The docs say to use AERROR(), but by that time it's too late--the system dialog box has already fired. I have this problem only if the user is working in a grid and calls the implicit tableupdate() by moving the record pointer; calling TABLEUPDATE() from code works fine, unless the tableupdate() call is in the beforeRowColChange method, in which case the pesky dialog box still fires.
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform