dbGetLast |
Top Previous Next |
Syntax INT = dbGetLast(hstmt as INT) Description Gets the last record from a result set. Parameters hstmt - Statement handle returned by dbExecSQL or dbPrepareSQL. Return value TRUE if the record was retrieved and any bound variables filled in with column data. FALSE if there were no records in the result set. Remarks A column that is nullable and currently set to NULL can be determined by dbIsNull after a dbGet operation. A NULL value can also be determined by checking the optional 'pReturn' variable used when binding the column with dbBindVariable. dbGetFirst and dbGetLast may not work with all database drivers, some text based drivers only support sequential access with the dbGet. See Also: dbGetNext, dbGetPrev, dbExecSQL, dbPrepareSQL, dbGet, dbGetFirst Example usage hstmt = dbExecSQL(pdb,"SELECT * FROM Addresses") |