Part of the Samples Website. 8/16/97.

samples.NewIn97.numericIPaddress

«Return true if it's something like 206.204.24.2.
on numericIPaddress (host)
local (i)
if string.countFields (host, '.') != 4
return (false)
for i = 1 to 4
try
number (string.nthField (host, '.', i))
else «didn't coerce to a number, must contain non-numeric chars
return (false)
return (true)


This page was last built on Sat, Aug 16, 1997 at 6:44:04 PM. You can download the current set of sample scripts from our FTP site. Dave