I am having a little problem with a text entry issue. Can anyone help and tell me how to limit the number of characters the user can enter. I have experiemented with a few things but can't get it to work. Heres the code:
sync on
sync rate 0
`The input string
InpStr$ = ""
do
`Handle input
char$ = entry$()
select asc(char$)
case 8 : `Backspace
InpStr$ = left$(InpStr$, len(InpStr$) - 1)
endcase
case 14 : `Carriage return
`In this case, we do nothing. It's just to prevent that a carriage return
`is added to InpStr$
endcase
case default
InpStr$ = InpStr$ + char$
endcase
endselect
clear entry buffer
`Display the text
cls
text 5, 5, "Input: " + InpStr$
sync
loop
Thanks in advance, Bankzy10