Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order in a grid
Message
 
 
À
25/07/2011 12:41:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
01519031
Message ID:
01519095
Vues:
44
>>>>>When a grid contains child records, is there a way to present them in an order different from the index upon which the relationship is based? Say the relationship is based on customerID but we want the child records to be presented in decending order by date.
>>The view will be
>>
>>select * from Child where CustomerID = ?m.CustomerID order by DateFld DESC
>>
>>For compound index it will be
>>
>>KeyField + str(2147483647 - IntField) && or just (-1)*IntegerField -- to sort in desc order
>
>Thanks Naomi. The compound works and that's good enough for me.

Ok, great.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform