Jorge,
The amembers() function does create a
real array. Don't confuse this array with the native collections.
I think help and docs label collections as arrays because you access it just like an array, but as you found collections don't work in functions like alen(). The Controls, Objects, DataEnvironment, Pages etc collections exist in the appropriate container classes.
>>Because the Form.DataEnvironment is it's own collection.
>
>So it's not an object then, but it's not an array either, it's a...collection :). Why does AMEMBERS(aArrayName, 2) which according to help:
>
>"Specifies that the array contains the names of the objects that are members of the object specified with ObjectName. The resulting array is one-dimensional."
>
>include the DE in the array?, I mean, no big deal, there are workarounds, but the terminology is confusing.