Need Advice.
- Posted by Matt Stancliff <sysop at ATL.MINDSPRING.COM> Dec 20, 1996
- 1566 views
I found this little piece of code that came in very useful to me, but I can't get it to take letters. All it does is take number input. Can someone tell me how to get this little thing to take both letters and numbers for input? -Matt INPUT CODE ---------------------------------------------------------------------------- -------------------------------------- function input(sequence text) -- To print a message a return a number sequence inp,cur inp={1,0} puts (1,text) -- message on screen while inp[1] do -- repeat until valid number cur=get_position() -- back to position if not valid inp = get (0) position (cur[1],cur[2]) end while return inp[2] end function ---------------------------------------------------------------------------- --------------------------------------