!@#$, I just lost the answer I posted. So, now here's the short version. There was a bug in the IsInIPRange where it didn't work with a string as second parameter. The reasonwas that FOR EACH $b IN $a won't work if $a is a string. This has now beeen corrected in the UDF and an updated UDF is available at IsInIPRange() - Checks if IP address is part of a network (network ID/subnet mask) .

Adam: Please read How to use UDFs

[ 17. March 2003, 15:24: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.