Thanks guys,

I think I've got it working OK now...but by copy of the picbasic compiler (with microcode studio) only limits me to 31 code lines

As much as I like Microcode Studio...is there something out there a guy can use that is much cheaper than picbasic pro AND is downloadable from the NET?

John.