Specifies the string to be searched.
Specifies the string for which to search. When SearchString is empty, the size of String is returned. If SearchString is not found, 0 is returned.
1. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for the last occurrence of the string "Matrox" and returns 30.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris",
"Matrox")
|
2. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for an empty string and returns 40.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris",
"")}
|
3. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for last occurrence of the string "MATROX" and returns 0.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris",
"MATROX")
|
Specifies the string to be searched.
Specifies the string for which to search. When SearchString is empty, StartIndex is returned. If SearchString is not found, 0 is returned.
Specifies the index at which to begin the search.
1. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" working backwords from index 20 for "Matrox" and returns 1.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris", "Matrox",
20)
|
2. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" working backwords from index 35 for "Matrox" and returns 30.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris", "Matrox",
35)
|
3. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" working backwords from index 20 for an empty string and returns 20.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris", "",
20)
|
Specifies the string to be searched.
Specifies the string for which to search. When SearchString is empty, StartIndex is returned. If SearchString is not found, 0 is returned.
Specifies the index at which to begin the search.
Specifies the number of characters to be examined after StartIndex in a reverse direction before ending the search.
1. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" beginning at index 15 working backwords to index 5. This example returns 0.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris", "Matrox",
15, 10)
|
2. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" beginning at index 15 and working backwords to index 1. This example returns 1.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris", "Matrox",
15, 15)
|
3. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" beginning at index 36 and working backwords to index 21. This example returns 30.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris", "Matrox",
36, 15)
|
4. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" beginning at index 36 and working backwords to index 31 This example returns 0.
LASTINDEXOF("Matrox Design Assistant with Matrox Iris", "Matrox",
36, 5)
|