I couldn't do much with that either... so I replaced that whole section with this.

for each $line in $WinsArray
if instr($line,'Address is (')
$IP = split(split($line,'(')[1],')')[0]
endif
next
_________________________
How to ask questions the smart way <-----------> Before you ask