开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜