AW: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property
Hello Gordon, Please look at the example: TextInput.restrict = 0-9 ,.\- There is a backslash before the minus sign, but it doesnt work. Harry Von: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Im Auftrag von Gordon Smith Gesendet: Dienstag, 28. März 2006 09:04 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property No; 'restrict' specifies what is accepted, not what is rejected. The problem is that the minus sign (a.k.a. hyphen) is a metacharacter: look at how you're using it in 0-9 to mean 0 through 9. So you have to escape it by preceding it with a backslash. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Monday, March 27, 2006 10:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property Well youre including the minus character in your restrict. So it shouldnt allow negative numbers. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn Sent: Saturday, March 25, 2006 6:37 AM To: flexcoders@yahoogroups.com 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 cant enter negative numbers in the box (it dont 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property
Sorry, Harald. I must need new glasses. Thanks for pointing out the right solution, Philippe. A \ in a string literal is always treated as an escape character, so you have to write \\- in order to set the 'restrict' property to backslash + minus, which the TextField in the TextInput then interprets as meaning allow a minus sign. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe Maegerman Sent: Tuesday, March 28, 2006 4:04 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property TI.restrict = '0-9\\-' Pim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn Sent: mardi 28 mars 2006 10:18 To: flexcoders@yahoogroups.com Subject: AW: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property Hello Gordon, Please look at the example: TextInput.restrict = 0-9 ,.\- There is a backslash before the minus sign, but it doesnt work. Harry Von: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Im Auftrag von Gordon Smith Gesendet: Dienstag, 28. März 2006 09:04 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property No; 'restrict' specifies what is accepted, not what is rejected. The problem is that the minus sign (a.k.a. hyphen) is a metacharacter: look at how you're using it in 0-9 to mean 0 through 9. So you have to escape it by preceding it with a backslash. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Monday, March 27, 2006 10:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property Well youre including the minus character in your restrict. So it shouldnt allow negative numbers. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn Sent: Saturday, March 25, 2006 6:37 AM To: flexcoders@yahoogroups.com 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 cant enter negative numbers in the box (it dont 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property
Well youre including the minus character in your restrict. So it shouldnt allow negative numbers. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn Sent: Saturday, March 25, 2006 6:37 AM To: flexcoders@yahoogroups.com 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 cant enter negative numbers in the box (it dont 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property
No; 'restrict' specifies what is accepted, not what is rejected. The problem is that the minus sign (a.k.a. hyphen) is a metacharacter: look at how you're using it in 0-9 to mean 0 through 9. So you have to escape it by preceding it with a backslash. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Monday, March 27, 2006 10:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property Well youre including the minus character in your restrict. So it shouldnt allow negative numbers. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn Sent: Saturday, March 25, 2006 6:37 AM To: flexcoders@yahoogroups.com 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 cant enter negative numbers in the box (it dont 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[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 cant enter negative numbers in the box (it dont 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. BEGIN:VCARD VERSION:2.1 N:Dehn;Harald FN:Harald Dehn ([EMAIL PROTECTED]) TEL;HOME;VOICE:+49 (69) 61002712 TEL;CELL;VOICE:+49 (151) 17887510 TEL;WORK;FAX:+49 (69) 15049656 ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20060302T091719Z END:VCARD Main.mxml Description: Main.mxml