Skip Headers
Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 2 (10.2)

Part Number B14308-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

IsLast Method

Applies To

ODynaset

OBinder

Description

This method returns TRUE if the current record in a dynaset is the last record in that dynaset. In the case of an OBinder object, the current record is in the bound dynaset.

Usage

oboolean IsLast(void) const

Remarks

If the current record is invalid, such as when EOF is TRUE; IsLast will be FALSE. This cannot occur in an OBinder as the underlying dynaset is bound between BOF and EOF.

IsValidRecord is more reliable than IsLast for checking when the fetch limit is a multiple of the total number of records in the table. For example:

binder.Open..

ODynaset odyn = binder.GetDynaset();

if(binder.MoveFirst() == OSUCCESS )

{

do

{

// use IsValidRecord instead of IsLast

if( odyn.IsValidRecord )

std::cout<<++count<<.

else break;

} while(binder.....)..

}

Return Value

TRUE if the current record is the first; FALSE otherwise.