Reputation: 60902
is instr used in vb.net for this?
Upvotes: 5
Views: 30140
Reputation: 17875
You can use the IndexOf method on a string, and you can also use the VB InStr function if you wish, although I would suggest sticking to .NET specific functions.
I would also suggest that you take a look at the documentation of the String methods which will help you know what functionality is available in the framework when working with strings. You can also take a look at the documentation for VB-specific string functions.
Upvotes: 5
Reputation: 561
Use String.IndexOf
http://msdn.microsoft.com/en-us/library/system.string.indexof.aspx
Upvotes: 9