...

View Full Version : Array Length *trick*?



JSlime
12-27-2003, 01:45 AM
Hello everyone...
I just wanted to know if there's a "trick" to return the length of an array?

My problem is this, l've got a handful of arrays that have got literally 100's of variables inside of them, and l wanted to know, if there's an easy way to return the length of an array.

Something like..



<script>
alert(myArray.length);
</script>

Is there a way to find out how many entries l've gotten in the array, without counting them by hand? LOL

Thanks,

~JSLime

JSlime
12-27-2003, 02:09 AM
Ooops, my apologizes...

I typo'd the name of my array... the script works...

Sorry to waste your time.

~JSlime



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum