Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Amembers bug?
Message
From
15/03/2000 12:47:25
 
 
To
15/03/2000 12:41:15
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00345944
Message ID:
00345948
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform