Specifies the string to be searched.
Specifies the string for which to search. When SearchString is empty, 1 is returned. If SearchString is not found, 0 is returned.
1. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" and returns 1. INDEXOF("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 1. INDEXOF("Matrox
Design Assistant with Matrox Iris", "")
|
3. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "MATROX" and returns 0. INDEXOF("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" beginning at index 20 for "Matrox" and returns 30. INDEXOF("Matrox
Design Assistant with Matrox Iris", "Matrox", 20)
|
2. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" beginning at index 35 for "Matrox" and returns 0. INDEXOF("Matrox
Design Assistant with Matrox Iris", "Matrox", 35)
|
3. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" beginning at index 20 for an empty string and returns 20. INDEXOF("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 before ending the search.
1. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" beginning at index 1 and ending at index 5. This example returns 0. INDEXOF("Matrox
Design Assistant with Matrox Iris", "Matrox", 1, 5)
|
2. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" beginning at index 1 and ending at index 6. This example returns 1. INDEXOF("Matrox
Design Assistant with Matrox Iris", "Matrox", 1, 6)
|
3. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" beginning at index 20 and ending at index 34. This example returns 30. INDEXOF("Matrox
Design Assistant with Matrox Iris", "Matrox", 20, 15)
|
4. |
The following example searches the string "Matrox Design Assistant with Matrox Iris" for "Matrox" beginning at index 20 and ending at index 33. This example returns 0. INDEXOF("Matrox
Design Assistant with Matrox Iris", "Matrox", 20, 14)
|