Text.LastIndexOf(Text [, Integer]) Method
Version: Available or changed with runtime version 1.0.
Reports the one-based index position of the last occurrence of a specified string in this instance.
Syntax
Index := Text.LastIndexOf(Value: Text [, StartIndex: Integer])
Note
This method can be invoked without specifying the data type name.
Parameters
Text
Type: Text
An instance of the Text 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.
See Also
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de