Modifier

Partager via


List.Contains(T) Method

Version: Available or changed with runtime version 1.0.

Determines whether an element is in the List.

Syntax

Result :=   List.Contains(Value: T)

Parameters

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

Value
 Type: T
The value to locate in the List.

Return Value

Result
 Type: Boolean
true if the List contains the value, otherwise false.

Remarks

The type T is a dynamic type. When List is of type Text then T will change to Text. When List is of type Integer, then T will change to Integer.

List Data Type
Get Started with AL
Developing Extensions