Click to See Complete Forum and Search --> : How to differentiate the IP Address


P R Karajagi
April 12th, 2001, 05:56 AM
I have a small problem.
I am unable to split the Ip Address.
for eg. 123.123.123.123. I want to have it in the fashion a=123, b=123,c=123, d=123 having separated bythe dot(.)

TH1
April 12th, 2001, 06:10 AM
use the split function in VB6 which will split the into an array for you

TH1
April 12th, 2001, 06:17 AM
Heres code that will do it

Dim Myarray() as string
Dim Mystring
Mystring = "123.123.123.123"
Myarray = Split(Mystring, ".")
MsgBox Myarray(0)
MsgBox Myarray(1)
MsgBox Myarray(2)
MsgBox Myarray(3)