Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping ODBC Errors

Status
Not open for further replies.

finsys

Programmer
Jan 31, 2002
56
GB
I'm struggling with error handling on a VFP7/SQL2k project. I've managed to trap errors with AERROR(), e.g. if the primary key uniqueness is violated, return a readable message for the user, but after my custom message appears and is cleared, the VFP ODBC 1526 message still pops up. How do I stop it appearing??
 
SQLsetprop(ConnectionHandle,'DISPWARNINGS', .f.)

this should take care of that problem
 
Yup, that looks like it should work.. but it doesn't!! I set it is the default for all connections (using nHandle as 0), but it's not having any effect :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top