Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InStr Method

Strings.InStr Method

Returns an integer specifying the start position of the first occurrence of one string within another. The integer is a one-based index if a match is found. If no match is found, the function returns zero.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member InStr(String, String, CompareMethod) Returns an integer specifying the start position of the first occurrence of one string within another.
Public method Static member InStr(Int32, String, String, CompareMethod) Returns an integer specifying the start position of the first occurrence of one string within another.
Top
Show:
© 2015 Microsoft