开发者

vb.net: finding a position of a string within a string?

开发者 https://www.devze.com 2022-12-09 13:22 出处:网络
is instr used in开发者_开发问答 vb.net for this?Use String.IndexOf http://msdn.microsoft.com/en-us/library/system.string.indexof.aspxYou can use the IndexOf method on a string, and you can also use t

is instr used in开发者_开发问答 vb.net for this?


Use String.IndexOf

http://msdn.microsoft.com/en-us/library/system.string.indexof.aspx


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.


no indexof is

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号