ERROR Command

ERROR — Display an error message.

Synopsis

ERROR data_ref [data_ref...] [ SEVERITY { Info | Warning | Question | Error } ]

ERROR NAME error_name

Introduction

The ERROR command displays an error on the screen. If no SEVERITY is given, the default SEVERITY "Error" will be used.

Arguments

data_ref

Any single data reference, including hard coded strings and numeric values.

error_name

The name of a predefined error object in the repository.

Note

In case of the severity being "Question", then the user selection value can be retrieved using built-in function ERRORRETURN(). It will contain the value 0 if the user accepted (= pressed Ok or Yes button) the screen and 1 if the user did not (= pressed Cancel, No, Close button) accept the screen.

Example

. . .
. . .
ERROR "Can not find the system configuration file." SEVERITY Warning
. . .
. . .
ERROR NAME ConfirmDelete
. . .
. . .

Related Commands

None.