472,122 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

check if array is empty

how do i check i testarray[] is empty or not?

thanks

--
+++-BigBuddha-+++
---------------------------
---www.bigbuddha.be---
---------------------------
"Light is faster than sound. Thats why people look intelligent untill you
hear them speak."
Jul 20 '05 #1
2 105043
Op Fri, 22 Aug 2003 13:15:24 +0200 schreef "bigbuddha"
<ne**@bigbuddha.be>:
how do i check i testarray[] is empty or not?

thanks


if (testarray.length <1) alert("array is empty");

--
http://www.techtronix.be
Jul 20 '05 #2
Clubberboy wrote:
Op Fri, 22 Aug 2003 13:15:24 +0200 schreef "bigbuddha"
<ne**@bigbuddha.be>:
how do i check i testarray[] is empty or not?

thanks


if (testarray.length <1) alert("array is empty");


thanks for the quick help

--
+++-BigBuddha-+++
---------------------------
---www.bigbuddha.be---
---------------------------
"Light is faster than sound. Thats why people look intelligent untill
you hear them speak."
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Paul Telco | last post: by
30 posts views Thread by S. van Beek | last post: by
1 post views Thread by Oleg Ogurok | last post: by
8 posts views Thread by Sunny | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.