RE: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-08-01 Thread Gordon Smith
] On Behalf Of Sid Maskit Sent: Friday, August 01, 2008 2:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] NaN and Infinity showing in output - How to modify? "Eww," eh? Well, gee, Tom, I hope I didn't spoil your breakfast or anything ;) I think both your refactorings

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-08-01 Thread Sid Maskit
Original Message From: Tom Chiverton <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Friday, August 1, 2008 5:04:56 AM Subject: Re: [flexcoders] NaN and Infinity showing in output - How to modify? On Thursday 31 Jul 2008, Sid Maskit wrote: > http://groups.yahoo.com/gro

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-08-01 Thread Tom Chiverton
On Thursday 31 Jul 2008, Sid Maskit wrote: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*>

Re: [flexcoders] NaN to return a string?

2008-07-31 Thread Blair Cox
Date: Thu, 31 Jul 2008 09:43:06 -0700 (PDT) To: Subject: Re: [flexcoders] NaN to return a string? Sure, just replace the 0 with whatever text you want, putting it inside single quotes since the entire statement is inside of double quotes. Since you are setting the value of a label, what ev

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Blair Cox
:28:51 -0700 (PDT) To: Subject: Re: [flexcoders] NaN and Infinity showing in output - How to modify? How about: sNaN(mynumber) ? 0 : "" -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: Blair Cox <[EMAIL P

Re: [flexcoders] NaN to return a string?

2008-07-31 Thread Sid Maskit
for a Better World http://www.CraftySpace.com blog: http://smaskit.blogspot.com/ - Original Message From: Blair Cox <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 9:27:02 AM Subject: Re: [flexcoders] NaN to return a string? Turns out showing

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Sid Maskit
ly 31, 2008 9:37:19 AM Subject: Re: [flexcoders] NaN and Infinity showing in output - How to modify? Try something like this: Note that you need to give the Label component and id, and use that id to refer to it in your statements within braces. By the way, as you are no doubt noticing, the l

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Sid Maskit
Space.com blog: http://smaskit.blogspot.com/ - Original Message From: Blair Cox <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 9:19:46 AM Subject: Re: [flexcoders] NaN and Infinity showing in output - How to modify? Just one more question. The zero works fo

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Laurent Cozic
How about: sNaN(mynumber) ? 0 : "" -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: Blair Cox <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 5:19:46 PM Subject: Re: [fle

Re: [flexcoders] NaN to return a string?

2008-07-31 Thread Blair Cox
TED]> Reply-To: Date: Thu, 31 Jul 2008 07:51:38 -0700 (PDT) To: Subject: Re: [flexcoders] NaN and Infinity showing in output - How to modify? If the format function is a custom function you have written, you could just have it check whether you like the result it is about to return, and

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Blair Cox
: -- Blair Cox http://www.luminultra.com From: Sid Maskit <[EMAIL PROTECTED]> Reply-To: Date: Thu, 31 Jul 2008 07:51:38 -0700 (PDT) To: Subject: Re: [flexcoders] NaN and Infinity showing in output - How to modify? If the format function is a custom function you have writte

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Blair Cox
ct: Re: [flexcoders] NaN and Infinity showing in output - How to modify? If the format function is a custom function you have written, you could just have it check whether you like the result it is about to return, and if not, return something else. If that is not the case, I believe that you

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Blair Cox
modify or create a custom function? What I have now is simply: -- Blair Cox http://www.luminultra.com From: Sid Maskit <[EMAIL PROTECTED]> Reply-To: Date: Thu, 31 Jul 2008 07:51:38 -0700 (PDT) To: Subject: Re: [flexcoders] NaN and Infinity showing in output - How to modify?

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Sid Maskit
If the format function is a custom function you have written, you could just have it check whether you like the result it is about to return, and if not, return something else. If that is not the case, I believe that you should be able to put tests into your binding statement. You could test f

Re: [flexcoders] NaN & Undefined

2005-08-02 Thread Aldo Bucchi
in Simard > Analyst Technique web | Web Technical Analyst > Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4 > Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4 > Gouvernement du Canada | Government of Canada > [EMAIL PROTECTED] > 613-947-0582 | tél

RE: [flexcoders] NaN & Undefined

2005-08-02 Thread Simard, Ghislain
Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4 Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Geoffrey Williams Sent: Tu

RE: [flexcoders] NaN

2005-08-02 Thread Geoffrey Williams
if (myField == undefined) { //... } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simard, Ghislain Sent: Tuesday, August 02, 2005 2:47 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] NaN Is there an equivalent for unde

RE: [flexcoders] NaN

2005-08-02 Thread Simard, Ghislain
Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Manish Jethani Sent: Tuesday, August 02, 2005 2:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] NaN On 8

Re: [flexcoders] NaN

2005-08-01 Thread Manish Jethani
On 8/2/05, Ghislain Simard <[EMAIL PROTECTED]> wrote: > The following condition doesn't see the NaN...why ? and how to make > the condition working? > > if (myField == NaN){ > dosomething; > } Use this: if (isNaN(myField)) ... There's some interesting things about NaN. See this post, for