469,323 Members | 1,574 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

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 104943
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.