Haven't checked the UDF's but I always learned that a compare between numbers can only be done when the value contains only pure numbers so a compare between 10.10.0.1 and 10.10.4.5 would be unreliable.

So I think splitting the IP and comparing only pure numbers would be more reliable then the code posted by Johan.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.