Thanks for replying, Phil.

In fact the 'missing digits' and % sign slipped out during the operation to copy/paste the code.

With the forum's help I found the software bugs; and I tracked down the hardware bug that Steve alluded to.
Everything is now working.

Moreover it has restored my confidence that I should stick with Picbasic, rather than going back to the Picaxe!

Regards,

Tony