Oracle Objects for OLE C++ Class Library
Release 9.0.1

Part Number A90172-01

Home

Book List

Contents

Master Index

Feedback

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.


 
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.

Home

Book List

Contents