Record.TestField(Any, ErrorInfo) Method

Version: Available or changed with runtime version 8.1.

Tests that the content of the field is not zero or blank (empty string).

Syntax

 Record.TestField(Field: Any, ErrorInfo: ErrorInfo)

Parameters

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

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

ErrorInfo
 Type: ErrorInfo
Additional information to include in the error if the test fails.

Record Data Type Get Started with AL
Developing Extensions