Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with ordering objects
Message
 
 
À
01/11/2001 04:29:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00576036
Message ID:
00576041
Vues:
21
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform