>>Nope, it still gives you an "'whatevernameyouused' is not an array" error. Unless it is an array, but even then it still will return at least 1. An array has to have at least one element.
>
>It really just returns the defined size. I tested it.
>
>Dimension MyArray(10)
>myArray[1] = 'jim'
>nlen = alen(MyArray,0)
>?nlen
>
>
>oh well, what in your case, would constitute an empty array? That is the problem. I think the DIMENSION command fills elements with a value of .F., which may not help much.
That's correct, there is no way to tell if an array is "empty" (unless you never have .F. values in it). But as you noted, .F. could be perfectly valid.