isNaN should work. http://www.adobe.com/livedocs/flex/2/langref/package.html#isNaN() On Fri, Oct 24, 2008 at 12:08 PM, Amy <[EMAIL PROTECTED]> wrote:
> Hi, all; > > I have a function that can take either an object or an XMLList as an > argument. I'm using for each (var prop in argument). This works great > when the argument is an object, but when it is an XMLList, I'm having a > hard time, because it's not taking the node name as prop. Instead, > it's setting it as 0, 1, etc. I'm trying to get around this by using > > if (prop is Number), but this is returning false. How do you check to > distinguish a string that contains a number vs. a string that does not > contain a number? > > Thanks; > > Amy > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > >

