List.LastIndexOf Method

Searches for the specified value and returns the one-based index of the last occurrence within the entire List.

Syntax

Index :=   List.LastIndexOf(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

Index
 Type: Integer
The one-based index at which the value is found or 0 if the value does not exist in the List.

See Also

List Data Type
Getting Started with AL
Developing Extensions