سؤال

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

هل كانت مفيدة؟

المحلول

Use LastIndexOf to find the last index of . then use Substring to get the part you need.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top