error

Displays a user-invoked error.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

void error(message)
string     message

Description

In TRIMreport displays a message and aborts the report. In TRIMapp executes the code that has been specified by error_trap() and returns control to the previous escape level. message, which specifies the contents of the variable parm.O, is read by error_trap().

Example

Checks for negative salaries.
if (SAL < 0) error("negative salary: " ^^ SAL);