Convert IP address

admin

Administrator
Staff member
I would like to get some numbers out of an IP address.

I have a string : 212.256.13.4

I would like to have the following numbers as an integer in different variables.

w = 212
x = 256
y = 13
z = 4

How do I do this? How do I have to convert the string?

thxDim strIP As String = "212.256.13.4"
Dim strSplit() As String = strIP.Split(CChar("."))

That puts it into an array for you to handle.

Eric
 
Back
Top