The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Strings::InStr Method
.NET Framework (current version)
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.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | InStr(Int32, String^, String^, CompareMethod) | Returns an integer specifying the start position of the first occurrence of one string within another. |
![]() ![]() | InStr(String^, String^, CompareMethod) | Returns an integer specifying the start position of the first occurrence of one string within another. |
Show:

