Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Element 4 of AERROR array with SQL Serv db
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Element 4 of AERROR array with SQL Serv db
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01548319
Message ID:
01548319
Views:
89
Hi,

When in my code the Tableupdate() fails (when updating a table in SQL Server database) I get the error using AERROR(aErrorInfo). The VFP 9 help on AERROR says that the element 4 of the array will have "Character. The current ODBC SQL State" What would be an example of such a value? I am trying to see if saving/capturing the value of this element 4 is useful. Also, element 3 says "Character. The text of the ODBC error message". Is this different from element 2 "The text of the error message"?

TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform