Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>alen() - get length of array without undefined elements</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     alen() - get length of array without undefined elements
  Usage:    <integer> = alen(<array>)
  Params:   array <array> - the array to check
  Returns:  integer equal to the length of the array not including
            elements that are undefined

 ---------------------------------- Example ---------------------------------

                 declare MYarray[10]
                 ? alen(Myarray)          && prints 0
                 ? len(MYarray)           && prints 10

                 MYarray[1] = "alen() test"
                 ? alen(MYarray)          && now prints 1
                 ? len(MYarray)           && still prints 10


See Also: alltrimlen() trimlen() ltrimlen()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson