Cicode Programming Reference > Cicode Function Categories > Display Functions Introduction > DspError

DspError

Displays an error message at the prompt AN on the operator's computer. You can disable the error message display (of this function) by setting the Cicode execution mode in the CodeSetMode() function.

Syntax

DspError(String)

String:

The message to be displayed.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

CodeSetMode, Prompt

Example

DspError("Error found");
! Displays "Error found" at the prompt AN.

See Also

Display Functions