Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash - ActionScript

Check if Array has numbers

 
Jump to:  
 
Web Maven
PostPosted: Mon Jul 28, 2008 7:23 pm    Post subject: Check if Array has numbers
       
I have an Array that has users IDs some are only Alpha and some are only
Numeric. I want to search my array and remove the Numeric values from the
array so I only see the Alpha values when displayed. I know I need to use
Array.splice to remove the value from the array but I am not sure how to
identify if a value is a number and not a name. The ID numbers are random and
can range from 1 digit to 10 digits.

Is there any way to confirm if an Array value is a number?

Thank you;
Raymond
 

 
kglad
PostPosted: Mon Jul 28, 2008 7:26 pm    Post subject: Re: Check if Array has numbers
       
you can use the isNaN() function.
 

 
Web Maven
PostPosted: Mon Jul 28, 2008 7:30 pm    Post subject: Re: Check if Array has numbers
       
Thank you;

This looks like what I have been looking for!!
 

 
kglad
PostPosted: Mon Jul 28, 2008 7:33 pm    Post subject: Re: Check if Array has numbers
       
you're welcome.
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

ubranka dla dzieci Wyclef Jean music everest poker nieruchomości łódź kształtki segmentowe