UltraLite Static C++ User's Guide
C++ API Reference
ULConnection class
bool LastFetchOK( )
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.
true (1) if successful.
false (0) if unsuccessful.
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... }