getCols()  getResultRows()

Chapter 5: General Objects and Methods

getErrInfo()

Description

Retrieves the error string and error code from the database layer and places into buff. The buff argument points to the error string and error code.

Syntax

getErrInfo(string *buff);

Parameter

Description

buff

Pointer to a string to hold the error string and error code.

Return value

Integer. Returns a positive integer if successful, and zero or negative integer, if failed.

Usage

Pointer to object

Object

int rv;string buff;rv = pdbi->getErrInfo(&buff);erm(“getErrInfo(): Error code =[%d] Message is %s”,rv,buff);buff.debug();

int rv;string buff;rv = my_dbi.getErrInfo(&buff);erm(“getErrInfo(): Error code =[%d] Message is %s,rv,buff);buff.debug();





Copyright © 2005. Sybase Inc. All rights reserved. getResultRows()

View this book as PDF