I need a number only input system which also has backspacing built in, came up with this.
sync on
sync rate 60
yh=150
xh=screen width()/2
th=text height("H")*2
do
cls
center text xh,yh,"How to use entry(1) and limit it to numbers only"
b$=entry$(1) : rem specify a one to automatically account for backspace delete
text xh,200,">"+ text$ :rem show text numbers
if right$(b$,1)>chr$(47) and right$(b$,1)<chr$(58) and len(b$)>width :rem check 0 to 9 olny are pressed
width=len(b$) :rem find the lenght
text$=text$+mid$(right$(b$,1),1):rem add last key pressed if a number
else
text$=left$(text$,len(b$)):rem reset lenght for width
width=len(b$) :rem reset width
endif
sync
loop
Dark Physics makes any hot drink go cold.