Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 1 (10.1) Part Number B10119-01 |
|
Applies To
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.