Backspace question

Post Reply
User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

Backspace question

Post by Dav »

I was making a custom input routine for text mode (instead of getting input on top of screen) and I can't figure out how to see when a user presses the backspace. Is that a recognized key in smart basic or is it a iOS restricted thing? Thanks.

- Dav

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Backspace question

Post by Mr. Kibernetik »

And how do you display a keyboard?

User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

Re: Backspace question

Post by Dav »

OPTION KEYBOARD ON, I think. I was going to post my input code just now, but now I can't locate it. I hope I didn't delete it! :(

- Dav

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Backspace question

Post by Mr. Kibernetik »

Try this code:

Code: Select all

OPTION KEYBOARD ON
1 a$=INKEY$()
IF a$="" THEN 1
PRINT a$
GOTO 1
It will give you an idea.

User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

Re: Backspace question

Post by Dav »

Yes, that works correctly. I must have messed up some variables in my code somewhere. Good thing I deleted it then :lol: . I'll start over. Thanks for your reply.

Smart Basic makes my iPad fun!

- Dav

Post Reply