Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Array Length *trick*?

    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..

    Code:
    <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

  • #2
    New Coder
    Join Date
    Dec 2003
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ooops, my apologizes...

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

    Sorry to waste your time.

    ~JSlime


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •