Contents Index LastCodeOK method Open method pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    ULConnection class

LastFetchOK method


Prototype 

bool  LastFetchOK( )

Description 

Provides a convenient way of checking that the most recent fetch of a row succeeded (true) or failed (false).

The value is reset by any subsequent UltraLite database operation, including those on other connections.

Returns 

true (1) if successful.

false (0) if unsuccessful.

Example 

The following example moves to the last row in a table, fetches a value from the row, and checks for the success of the fetch:

tb.Open( &conn );
tb.Last();
tb.GetID( iVal );
if( tb.LastFetchOK() ){
   ... operations on success...
}
See also 

AfterLast method

First method


Contents Index LastCodeOK method Open method pdf/preface.pdf