423,688 Members | 1,864 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,688 IT Pros & Developers. It's quick & easy.

check if array is empty

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.