A small hint
Code:
if keypress<=9 then 
Number=(Number*10)+KeyPress GOTO DoIt Endif