Originally Posted by
*****179
Ok, i seem to be stuck at a wall in a program im making.
what im stuck at is this:
127.0.0.1:4254
what i want to do is take the port off this string and put it into another string for use. Problem is, its got to be able to go on any IP string, not a user-set one. So its got to search for the ":" and pull anything after it off for use. First half would be nice to keep aswell.....
tryed:
dim ip as string = console.readline()
dim varscip as integer = 0
ip.split(new char, (":"{c})
for each line in ip
Varscip += 1
If varscip = 2 then
console.writeline(line)
end if
next
varscip = 0
Cant remember if that .split is correct, but should be close to what i used...