Returns the position of the first occurrence of one string within another.
Copy Code |
---|
int InStr ( |
The InStr function returns the following values:
Parameter | Return Value |
---|---|
a is zero-length | -1 |
a is null | -1 |
b is zero-length | -1 |
b is null | -1 |
b is not found | -1 |
b is found within a | The position at which match is found. |