Originally Posted By: BillBarnard
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


No. He is removing the spaces from any octet that has less than three digits. For example: Kix returns three digits for every octet like 192.160. 1. 1 which is correct but a bit ugly. Using my code 192.168. 1. 1 will become 192.168.1.1 with no spaces and that is what he is doing at the top of the script with all the LTrim lines. If there are no spaces then nothing will change and the code still works.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.