Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inputmask of a texbox 1

Status
Not open for further replies.

scklifasovskiy

Programmer
Nov 12, 2012
57
CA
Is there a way?
I have a textbox that iset inputmask to N (letters and digits only)... I also want to permit only Upper case letters..Can I combine? Adding !(converts to uppercase) doent work combined with N. Any suggestions?
Thanks
 
Textbox Properties
Format ! (that's an Exclamation Mark for Upper Case)
InputMask NNNNNN (number of alpha/numeric characters to expect)
MaxLength n

Good Luck,
JRB-Bldr

 
JRB-Bldr has the solution.

One thing is importatn to mention, you got the N wrong, it's not at all mentioned for Format Property. It's only mentioned for Inputmask.
In general You can combine multiple formats, but N just isn't having any meaning for Format.

Bye, Olaf.
 
thank you jrbbldr, works perfectly
OlafDoschke -- its a combination of inputmask(NNNN...) and format(! not to allow lowercaase letter) -- works great
 
Yes, I said "JRB-Bldr has the solution." and I have understood it.

You can still also combine multiple Formats, eg !A will limit it to upper case letters only. Not useful in your cas,e but you see the principle N is not at all an option for Format, it is only an option for InputMask, but yes, there it works as you thought it would work in Format.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top