0

I have an ip address as follows 192.168.10.140 i would like to drop everything from the string after the 3rd occurance of the decimal but i am not sure how to go about it

using VB.net 2010

thanks in advance

4

1 回答 1

1

用于LastIndexOf查找最后一个索引,.然后用于Substring获取您需要的部分。

于 2012-12-23T04:19:50.953 回答