Try converting the diskspace into integer format by using VAL.

BTW, the code would be so much shorter with KiXtart 4.21 and a couple of UDFs. It would also be much cleaner. [Smile]
_________________________
There are two types of vessels, submarines and targets.