FieldRef.FieldError([Text]) Method

Version: Available or changed with runtime version 1.0.

Stops the execution of the code, causing a run-time error, and creates an error message for a field.

Syntax

 FieldRef.FieldError([Text: Text])

Parameters

FieldRef
 Type: FieldRef
An instance of the FieldRef data type.

[Optional] Text
 Type: Text
Use this optional parameter to include the text of the error message. If this parameter is not present, default text will be used.

FieldRef Data Type Get Started with AL
Developing Extensions