Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql zap?
Message
 
 
À
17/11/2003 15:50:07
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:
00850819
Vues:
16
>>
>>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform