getErrInfo()  getRowData()

Chapter 5: General Objects and Methods

getResultRows()

Description

Returns the number of rows fetched after each exec(). Used primarily with fetch().

Syntax

getResultRows();

Return value

Integer. Returns the number of rows found.

Usage

Pointer to object

Object

pClDbi->getResultRows();

my_dbi.getResultRows();

Examples

Example 52

while(resultRows < Rows)
{
     resultRows = db_main.getResultRows();
     if(resultRows == 10)break;
     db_main.fetch();
     db_main.getRowData(resultRows + 1, &dataptr);
     dataptr.debug();
     tempest = dataptr;
     i++;
     zaxxon = i;
     if(tempest.substr(zaxxon) > 1)
     {
          message = “rowcolCheck(“ + (i+17)+”)	“;
          WriteResults(message,1 );
     }
     else
     {
          message = “rowcolCheck(“ + (i+17)+)	“;
     }
}




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

View this book as PDF