Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Return Codes in the ODBC Extender

Keywords:   return codes 0 -1

Question:

I'm running some ODBC code. The qAllocEnv function returns a positive number (handle), but the qAllocConnect and other functions along the way return a 0. Does this mean it's failing or is this expected behavior?

Answer:

If qAllocConnect returns anything other than a -1, then that means it's a success. So a return of a zero (0) means it's working!
Article ID:   W14777