XenoGuard 4.0 Documentation
Last Index Of
ActionStep Reference » Programming » String Operation » Range » Last Index Of
The ActionStep Last Index Of searches the last occurrence of a specified character or string and stores the index number in Result of the result list. The Result displays a value of -1 if the character or string is not found.
[-] Hide
- Open the Programming node in the Workspace Explorer.
- Open the String Operation node.
- In the Range node, select the Last Index Of ActionStep.
Parameters:
The ActionStep has the following input parameters:
NAME |
DESCRIPTION
|
---|---|
String |
The string to be checked.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
Search String
|
The string to be searched.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
![]() |
The search performed by Last Index Of ActionStep is case-sensitive. |
Results:
The ActionStep returns the following results:
NAME
|
DESCRIPTION
|
---|---|
Result |
Contains the index position of the specified string.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter] |
![]() |
The Result displays the index count if the Search String parameter is empty. |
Example 1 (Displays the last occurrence of a string in a variable):
This example shows the index position of a specified string for the local Info variable with Text as a data type. The result is then output via Message Box.
