I want to allow the user to type in an IP address into a textbox and then verify that it's ok (a valid structure).
Is there a quick function that will tell me that
"193.132.324.23" is ok
and "13r.675.s.78" has a problem
I've written code that will check for the dots and then by finding there location, use it to breakown the ip address so that I have the following
var1 = "13r"
var2 = "675"
var3 = "s"
var4 = "78"
I was then trying the following
if val(var1) < 0 or val(var2)>999 then
but as the val function returns 0(zero) if it gets something like "s" then this wont work for me.
Any quicker methods would be appreciated