Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.46 KB

record-testfield-joker-text-method.md

File metadata and controls

42 lines (34 loc) · 1.46 KB
title description ms.author ms.date ms.topic author ms.reviewer
Record.TestField(Any, Text) Method
Tests whether the contents of a field match a given value.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

Record.TestField(Any, Text) Method

Version: Available or changed with runtime version 1.0.

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

Syntax

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

Parameters

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

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

Value
 Type: Text
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.

See Also

Record Data Type
Get Started with AL
Developing Extensions