Put DEBUG ON into the first line of your code and step through the code. This way you can evaluate variable contents while running the script. However, I think there's something wrong with your code, but without the complete code it's hard to tell.

[ 31. May 2003, 01:11: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.