ADODataSet.LastError


public function LastError

Prototype:

function LastError()

Description:

The last error(s) encountered by the data set, as a string. If the string is empty, then no errors where encountered.

Notice that after calling this function, the error string is emptied, so calling the LastError without any operations (the second time) will show no errors.

Return value:

Returns the ODBC errors as a string, or an empty string if no errors were encountered.