Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting Cursors? Need selectable sort order on 2 flds
Message
From
09/10/2001 04:24:42
 
 
To
09/10/2001 01:22:49
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00565811
Message ID:
00565830
Views:
28
Hi!

Take a look to the VFP Grids Part III article in the Universal thread magazine, October 2001. There is downloadable sample with source code that you can change for your needs. This way you will have a grid class with sorting cpability, but this is a half way.

You're right, to organize interactive search using current index, you will need to se SET NEAR ON and SEEK commands. After searching it is good idea to use the same routine as I used to refresh grid after sorting (Grid.RefreshAfterSorting in mentioned sample).

Let me know if you have any questions on improving that class for your needs.

HTH.

>If I create a cursor using a select statement, is there a way to sort a cursor on two different fields, one at a time? I am using the cursor to populate a grid and if the user clicks on a header, I would like to resort that grid. In addition, I would like to be able to search through that grid based on that sort... I assume, similar to searching on a table (seek or locate). Right?
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