Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know order() from select-sql
Message
De
24/09/2004 04:04:35
 
 
À
24/09/2004 03:58:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00945631
Message ID:
00945636
Vues:
24
> i have a grid in my form where i want to order the recordsource
> (a cursor from select * drs into cursor csrdrs) when my user click
> on each column's header.
>
> i want to know first in what oder is the column set, so i should be
> able to do an order by ascending or descending.

If your RecordSource is a View or temp SQL result, you can use temporary indexing:
Select (yourGrid.RecordSource)
Index On fieldX Tag tagY
and then Set Order To && Descending at runtime


hth
-Stefan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform