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 / input non-alphanumeric and alphanumeric, letters and numbers

Author
Message
sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 3rd Sep 2007 00:37
How do I setup the input command so that it will only except number between 0-9 from the alphanumeric group, and restrict the user from typing any other character including non-alphanumeric characters? I also want to limit the input to six digits; nothing less or more the six digits. Has anyone tried this before?

INPUT Print Statements, Input Variable
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 3rd Sep 2007 11:55 Edited at: 3rd Sep 2007 11:55
try this:


sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 4th Sep 2007 08:35
Hey that works great except that I can still enter non-alphanumeric characters. Everything else works... I'll see if I can turn off the shift key... Without the shift, users can't input non-alphanumeric charcters (shift+3 = #). Thanks...
sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 4th Sep 2007 08:42
I fix it, It just need it one more line of code... Thanks for you help...



Regards,
Sam
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 4th Sep 2007 12:05
Glad it helped even if not complete.
The intention was to show the logic within code, and you grasped it right away.
cheers

P.S.
Lets see now if some of the - NO NO gotos in the code - whiners show up
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 4th Sep 2007 13:10
nice call

Login to post a reply

Server time is: 2024-09-27 05:09:45
Your offset time is: 2024-09-27 05:09:45