Product Documentation

FairCom Java & .NET Stored Procedures

Previous Topic

Next Topic

SQLCursor.found

Checks whether a fetch operation returned a record.

Format

public boolean found ()

Returns

True if the previous call to fetch() returned a record, false otherwise.

Parameters

None

Throws

DhSQLException

Example


for (;;)

{

cust_cursor.fetch ();

if (cust_cursor.found ())

{

cust_cursor.getValue (1, INTEGER);

cust_cursor.getValue (2, CHAR) ;

}

else

break;

}

TOCIndex