Remove the following lines:

DIM $iparray[0]
DIM $iparray[1]
call "isiniprange.udf"

Add single-quote to end of:
$iparray[2]='192.168.4.0/24
_________________________
Home page: http://www.kixhelp.com/hb/