Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP ping question

Status
Not open for further replies.

TheCandyman

Technical User
Sep 9, 2002
761
US
I am making my own IP scanner for some network testing. How would i take out the "." marks in a IP say

192.168.0.150

to be like 1921680150


any ideas??
 
You could use a function called replace to remove the dots, however I think you need to expand the numbers between the dots to three characters first.

Have a look at the function Split, which you can use to break the ip address using the dot as a separator. Then zero fill the numbers so they are all three characters and then recombine them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top