
-----------------------------------
nightcrawler
Thu Apr 05, 2007 7:47 am

Programming Student in trouble...  Please help!
-----------------------------------
I am trying to get a text box to only accept a certain number of numbers...

 :?: I need to restrict the user so that they have to enter in 9 digits before they are allowed to move on... No more, no less...

 :?: Can anybody please help me??

-----------------------------------
rdrake
Thu Apr 05, 2007 10:29 am

RE:Programming Student in trouble...  Please help!
-----------------------------------
Do text boxes not have a Length property?  Find a property like that and check it against a certain value, like 9 in your example.

-----------------------------------
cool dude
Thu Apr 05, 2007 1:05 pm

Re: Programming Student in trouble...  Please help!
-----------------------------------
yes rdrake there is built in length function called len() 

i made an example program to do exactly what you asked. please don't mind the variable usage.

-----------------------------------
cool dude
Thu Apr 05, 2007 1:12 pm

Re: Programming Student in trouble...  Please help!
-----------------------------------
sorry wrong attachment

-----------------------------------
Aziz
Tue Apr 10, 2007 5:18 pm

RE:Programming Student in trouble...  Please help!
-----------------------------------
There is a property called MaxLength I believe
