![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to restrict a user to enter ONLY numbers 0-9 in a text box with a max length of 10 digits. No signs, spaces allowed. All 10 digits are not compulsory ... the user may enter just 8 digits also. In another text box I want the user to enter a max number of 3 characters (letters) A-Z ONLY. No special characters allowed. All 3 letters are not compulsory ... the user may enter just 1 or 2 letters only. Could someone please help with this ? Thx. Prakash. ??? 'alpha uppper case 9999999999 'digits only |
#3
| |||
| |||
|
|
Prakash wrote: I want to restrict a user to enter ONLY numbers 0-9 in a text box with a max length of 10 digits. No signs, spaces allowed. All 10 digits are not compulsory ... the user may enter just 8 digits also. In another text box I want the user to enter a max number of 3 characters (letters) A-Z ONLY. No special characters allowed. All 3 letters are not compulsory ... the user may enter just 1 or 2 letters only. Could someone please help with this ? Thx. Prakash. *>??? *'alpha uppper case 9999999999 *'digits only |
#4
| |||
| |||
|
|
On May 18, 6:06 pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote: Prakash wrote: I want to restrict a user to enter ONLY numbers 0-9 in a text box with a max length of 10 digits. No signs, spaces allowed. All 10 digits are not compulsory ... the user may enter just 8 digits also. In another text box I want the user to enter a max number of 3 characters (letters) A-Z ONLY. No special characters allowed. All 3 letters are not compulsory ... the user may enter just 1 or 2 letters only. Could someone please help with this ? Thx. Prakash. ??? 'alpha uppper case 9999999999 'digits only Thx Salad ... but both allow "spaces" to be typed in (especially 9999999999). Any way of circumventing this ? |
|
Rgds Prakash. |
#5
| |||
| |||
|
|
Prakash wrote: On May 18, 6:06 pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote: Prakash wrote: I want to restrict a user to enter ONLY numbers 0-9 in a text box with a max length of 10 digits. No signs, spaces allowed. All 10 digits are not compulsory ... the user may enter just 8 digits also. In another text box I want the user to enter a max number of 3 characters (letters) A-Z ONLY. No special characters allowed. All 3 letters are not compulsory ... the user may enter just 1 or 2 letters only. Could someone please help with this ? Thx. Prakash. ??? *'alpha uppper case 9999999999 *'digits only Thx Salad ... but both allow "spaces" to be typed in (especially 9999999999). Any way of circumventing this ? Yes. *Press Help (F1) on InputMask property. *Switch 9 to 0. Rgds Prakash. |
#6
| |||
| |||
|
|
On May 19, 5:13 pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote: Prakash wrote: On May 18, 6:06 pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote: Prakash wrote: I want to restrict a user to enter ONLY numbers 0-9 in a text box with a max length of 10 digits. No signs, spaces allowed. All 10 digits are not compulsory ... the user may enter just 8 digits also. In another text box I want the user to enter a max number of 3 characters (letters) A-Z ONLY. No special characters allowed. All 3 letters are not compulsory ... the user may enter just 1 or 2 letters only. Could someone please help with this ? Thx. Prakash. ??? 'alpha uppper case 9999999999 'digits only Thx Salad ... but both allow "spaces" to be typed in (especially 9999999999). Any way of circumventing this ? Yes. Press Help (F1) on InputMask property. Switch 9 to 0. Rgds Prakash. Thx a ton Salad for your responses. I did try the F1 & searching online too. And yes, I did try the inputmask "0000000000". The problem here is that the user has to enter all 10 numeric characters. What if the user wants to enter just 7 or 8 chars ? I once again repeat ... I want to restrict a user to enter ONLY numbers 0-9 in a text box with a max length of 10 digits. No signs or spaces to be allowed. All 10 digits are not compulsory ... the user may enter just 8 digits also. Thx again & Rgds, Prakash. |
#7
| |||
| |||
|
|
I want to restrict a user to enter ONLY numbers 0-9 in a text box with a max length of 10 digits. No signs, spaces allowed. All 10 digits are not compulsory ... the user may enter just 8 digits also. In another text box I want the user to enter a max number of 3 characters (letters) A-Z ONLY. No special characters allowed. All 3 letters are not compulsory ... the user may enter just 1 or 2 letters only. Could someone please help with this ? Thx. Prakash. |
![]() |
| Thread Tools | |
| Display Modes | |
| |