Modifier

Partager via


Record.TestField(Any, Enum) Method

Version: Available or changed with runtime version 2.0.

Tests whether the contents of a field match a given value.

Syntax

 Record.TestField(Field: Any, Value: Enum)

Parameters

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

Field
 Type: Any
The field that you want to test.

Value
 Type: Enum
The value that you want to compare to Field. The data type of this parameter must match the data type of Field. If you include this optional parameter and the contents of Field do not match, then an error message is displayed. If you omit this parameter and the contents of Field is zero or blank (empty string), then an error message is displayed.

Record Data Type
Get Started with AL
Developing Extensions