>From the ASDoc for the 'restrict' property of TextInput:

 

"Flex scans the string from left to right. You can specify a range by
using the hyphen (-) character. If the string begins with a caret (^)
character, all characters are initially accepted and succeeding
characters in the string are excluded from the set of accepted
characters. If the string does not begin with a caret (^) character, no
characters are initially accepted and succeeding characters in the
string are included in the set of accepted characters."

 

So it sounds like restrict="^a-z" should work.

 

- Gordon

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of boy_trike
Sent: Wednesday, November 29, 2006 8:49 PM
To: [email protected]
Subject: [flexcoders] Upper Case ONLY in text fields

 

I have an address field (textinput) that I want to NOT allow lowercase.
(Using the restrict 
property does not work since I want to allow numbers, #, $, etc. and I
can not think of all the 
characters) Is there an easy way to restrict lower case letters?

Thanks

Bruce

 

Reply via email to