Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know order() from select-sql
Message
From
24/09/2004 04:04:35
 
 
To
24/09/2004 03:58:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00945631
Message ID:
00945636
Views:
30
> 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform