Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with ordering objects
Message
From
01/11/2001 06:13:40
 
 
To
01/11/2001 04:29:22
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00576036
Message ID:
00576041
Views:
20
Hi!

Create an array with 2 columns. In first column store references to all objects, in second column - values of that property for sorting for all objects. then use ASORT() function to sort that array. Than call printing by scanning all array elements and using object reference from the first array's column.

>I have an object which contains order objects
>I use addobject to add them to them parent object
>
>With the
>
>FOR each oObject in l_object.objects
> this.print(oObject)
>NEXT
>
>Problem the objectect with be printed in the order they are added
>to the parent object
>
>How can i sort the object by an property
>
>Kind regards
>
>Jan Dorresteijn
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform