+92 332 4229 857 99ProjectIdeas@Gmail.com

String.IndexOf function (Vb.net)


String IndexOf function
String.IndexOf() function returns the first occurrence of the specified string  from the main string.
System.string is the library for this compare function.
 
Example
Dim str As String = "my name is Saad Bin Saulat"
Dim strIndex As Integer = str.IndexOf("Saad")
MsgBox(strIndex)
Result
The message box will display 11.


Related articles

0 comments: