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

ErrCom

Gets the communication status for the current Cicode task. You can call this function in reports, Cicode that is associated with an object, and in any Cicode task.

Syntax

ErrCom()

Return Value

0 (zero) if all I/O device data associated with the task is valid, otherwise an error is returned.

Related Functions

CodeSetMode

Example

IF ErrCom()<>0 THEN
Prompt("I/O device data is bad");
END

In a report format:

{CICODE}
IF ErrCom()<>0 THEN
PrintLn("This Report contains bad data");
END
{END}

See Also

Error Functions