Well you’re including the minus character in your restrict.  So it shouldn’t allow negative numbers.

 


From: [email protected] [mailto:[email protected]] On Behalf Of Harald Dehn
Sent: Saturday, March 25, 2006 6:37 AM
To: [email protected]
Subject: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property

 

Hello

 

I try to restrict the input of a TextInput Control with the following line:

 

TextInput.restrict = "0-9 ,.\-" + _CurrencySymbol;

 

Unfortuneally I can’t enter negative numbers in the box (it don’t accept the minus character). This example worked fine with the alpha version of Flex, I already reported the bug for the beta 1 version.

 

Harry

 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to