ucError
See Also: ucErrorMessage, Error Handling
Returns the error number of the most recent transaction.
ucError([tHandle])
Parameters
tHandle
Optional. Each thread has its own definitions, and keeps separate track of its errors. By specifying this argument, you can select which thread to check for an error. If no thread is specified, the default thread is implied. If you are calling ucError from a centralized error handler, then you should not omit the tHandle argument.
Remarks
If ucError = 2 Then
... ' This line is NOT
recommended.
If ucError = uc_Err_Syntax_Error Then ... ' Do it like this instead.