Don't you mean Split(@ipaddress0, ".")
i.e. split it on the full stop, there may not be spaces in some addresses
e.g. 192.168.123.123
_________________________
Bill