Returns the position of the first occurrence of one string within another.
Function returns -1 if the string is not found. The search is case-sensitive.
Syntax: |
---|
value = FindString( searchString, targetString ) OR value = Instr( searchString, targetString ) ' Short form usage: "Instr" |
Parameter: |
Description: |
---|---|
searchString |
String being searched. |
targetString |
String which is being looked for in the search string. |
value |
Position of found targetString, or -1 when not found. First searchString character is in position 1, not 0. |
Example: |
---|
value = FindString( "Hello", "o" ) ' Returns 5
Results:See example comments. |
Links: |
---|
|
See Also: |
Edit Time: 9/18/2020 1:35:29 PM |
Topic ID#: 31 |