Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / What is the easiest way to check for a Backspace Key

Author
Message
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 19th Dec 2002 21:09
I'm trying to do a custom Text input routine, the Shift/Control/Arrows have a seperate function, I can't think of an easy way to check for BackSpace.

Thanks for any help.

Jas
Vandetta
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 19th Dec 2002 21:54
Use the backspace's ASCII value. Here's a table of all ASCII values: [url]www.asciitable.com[/url]

read your key pressed into a string, and then use asc(a$) where a$ is your string to get its ascii value. The ascii value of backspace is 8.

jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 19th Dec 2002 22:13
Thanks.

I thought ENTRY$()would just return Text/Numbers.

Cheers,

Jas
Vandetta
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 19th Dec 2002 22:41
No problem, glad to help

Login to post a reply

Server time is: 2024-04-19 00:20:57
Your offset time is: 2024-04-19 00:20:57