Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC connection error
Message
De
15/05/2009 08:16:23
 
 
À
15/05/2009 08:14:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01400087
Message ID:
01400090
Vues:
51
>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

Thanks Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform