Skip to content

Commit 6523253

Browse files
Update Instr(Int32, String, String) (#8584)
1 parent 9b07a10 commit 6523253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/Microsoft.VisualBasic/Strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@
12951295
|`Text`|1|Performs a text comparison|
12961296
12971297
## Examples
1298-
This example uses the `InStr` function to return the position of the first occurrence of one string within another.
1298+
This example uses the `InStr` function to return the position of the first occurrence of one string within another. In the first example, the search starts from the fourth character and returns the next lower case "p" because `CompareMethod` is `Text` and therefore case insensitive. The position is always relative to the beginning of the string, regardless of the start position.
12991299
13001300
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrStrings/VB/Class1.vb" id="Snippet8":::
13011301

0 commit comments

Comments
 (0)