| errCode | Variable (Automatic)

error.h

unsigned short errCode;

Contains the error number in a TRY...ONERR...ENDTRY block.

errCode is an automatic (local) variable which is automatically created in the error handler, and it contains the error number to allow the program to check what caused the error. This variable is automatically destroyed after ENDTRY statement, i.e. after execution of the error handler. Variable errCode, because it is local to the ONERR block, cannot be referenced outside the ONERR block.

Used by: TRY, ENDFINAL, PASS

See also: ErrorCodes