>I have a piece of code that is trying to open view that are not already open in the data environment. So, I use amembers to get the list of views. I put the views into the DE very carefully so their sequence should have been....
>
>1, 2, 3, 4, 5, 6, 7, 8, 9, 10
>
>instead, the sequence resulting from amembers is ...
>
>1, 10, 2, 3, 4, 5, 6, 7, 8, 9
>
>arrrrgh, to say the least. Is this a bug? If amembers read the scx's data environment methods directly, it would have had to sort the items. If that sort is not needed, amembers should become faster when the sort is removed, no?
>
>Thanks
I see nothing in the docs that specifies that AMEMBERS should return objects in any specific order. If you mean that 1,2,3,4,5,6,7,8,9 is is really Cursor1, Cursor2, Cursor3, etc., then it looks like it is returning them Alpha by name. IOW, it doesn't look like you can count on this behavior.
I am still a little unclear on what you are doing anyway- if you expand, maybe we can come up with an alternative?
Erik Moore
Clientelligence