Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC connection error
Message
From
15/05/2009 08:14:53
 
 
To
15/05/2009 07:59:55
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01400087
Message ID:
01400088
Views:
61
Hi Nick.

>If the access database is not there for any reason I get an error prompt from ODBC and my try catch error handling is ignored.

Because the ODBC driver hasn't thrown an error. If you use SQLSETPROP(0, "DispLogin", 3), then it will not display a dialog and SQLCONNECT() or SQLSTRINGCONNECT() will instead return -1 and you can use AERROR() to find out what went wrong. Either way, those commands don't throw an error so your CATCH code won't execute.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform