Specifies the string to be searched.
Specifies the characters for which to search. When SearchString is empty, 1 is returned. If the SearchString characters are not found, 0 is returned.
1. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for the characters in the string "Iris" and returns 4.
INDEXOFANY("Matrox Design Assistant with Matrox Iris",
"Iris")
|
2. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for an empty string and returns 1.
INDEXOFANY("Matrox Design Assistant with Matrox Iris",
"")
|
3. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for the characters in the string "ROX" and returns 0.
INDEXOFANY("Matrox Design Assistant with Matrox Iris",
"ROX")
|
Specifies the string to be searched.
Specifies the characters for which to search. When SearchString is empty, StartIndex is returned. If the SearchString characters are 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" beginning at index 20 for the characters in the string "Iris" and returns 26.
INDEXOFANY("Matrox Design Assistant with Matrox Iris", "Iris",
20)
|
2. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" beginning at index 20 for an empty string and returns 20.
INDEXOFANY("Matrox Design Assistant with Matrox Iris", "",
20)
|
Specifies the string to be searched.
Specifies the characters for which to search. When SearchString is empty, StartIndex is returned. If the SearchString characters are not found, 0 is returned.
Specifies the index at which to begin the search.
Specifies the number of indices to be examined after StartIndex before ending the search.
1. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for the characters in the string "Matrox" beginning at index 8 and ending at index 19. This example returns 0.
INDEXOFANY("Matrox Design Assistant with Matrox Iris", "Matrox", 8,
12)
|
2. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for the characters in the string "Matrox" beginning at index 8 and ending at index 20. This example returns 20.
INDEXOFANY("Matrox Design Assistant with Matrox Iris", "Matrox", 8,
13)
|