Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Version: Available or changed with runtime version 15.0.
Reports the one-based index position of the last occurrence of a specified string in this instance.
Syntax
Index := Label.LastIndexOf(Value: Text [, StartIndex: Integer])
Parameters
Label
Type: Label
An instance of the Label data type.
Value
Type: Text
The string to seek.
[Optional] StartIndex
Type: Integer
The search starting position. The search proceeds from startIndex toward the beginning of this instance.
Return Value
Index
Type: Integer
The one-based index of the last occurrence of the specified string in this instance. If the index returned is 0, the value is not present in the string.
Related information
Label data type
Getting started with AL
Developing extensions