How to check if a substring exist in a string with VB.NET

1 Answer

0 votes
Imports System
				
Public Module Module1
	Public Sub Main()
		Dim s As String = "vb.net"
		
		Console.Write(s.IndexOf("b.N", StringComparison.CurrentCultureIgnoreCase) <> -1)
	End Sub
End Module



' run:
'
' True
'

 



answered Jan 11, 2020 by avibootz

Related questions

...