Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql zap?
Message
De
18/11/2003 04:21:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00850590
Message ID:
00850893
Vues:
14
>>>
>>>What is the code returned by SQLExec? -1 would indicate ODBC error. You can use AERROR() to get details about ODBC error.
>>
>>I'll check that out once I've put some records back in the file. Looks useful. How would I use AERROR in this context?
>
>You should always check value returned by all SQL*() functions because it's the only way to know if it has been executed successfully or not.
lnresult=SQLEXEC(hconn,lcsql,"testdata")
>IF lnresult = -1
>  * ODBC Error
>  AERROR(laError)
>  ...
>ENDIF
Thanks Sergey. Will try that. I had tried watching AERROR in the Trace window but that didn't work.

Cheers

Harry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform