Cicode Programming Reference > Cicode Function Categories > Error Functions Introduction > ErrMsg

ErrMsg

Gets the error message associated with a detected hardware error.

Syntax

ErrMsg(nError)

nError:

The hardware error number returned from the IsError() function.

Return Value

The error message (as a string). A null value is returned if nError is not in the range of Cicode errors.

Related Functions

IsError, ErrHelp, ErrInfo, ErrTrap

Example

//Get the message of the last hardware error
sMsg = ErrMsg(IsError());

See Also

Error Functions