Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql zap?
Message
 
 
To
17/11/2003 15:50:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00850590
Message ID:
00850819
Views:
17
>>
>>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform