Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to re-order the records in cursor ?
Message
 
To
07/01/2001 00:18:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00460297
Message ID:
00460299
Views:
12
>Hi,
> I have a grid that the recordsource is set to a cursor. And in the form, i will allow to add in new record into the cursor and display in the grid. But i wish to reorder(order by a specific field) the record when i added the record into the cursor.
> Is it got any way to reorder the cursor without reSelect.... into another cursor and set the grid recordsource again ?
>thanks
>
>regard,
>kengwen

You can just index the cursor on the desired field. Note that if you use the table buffering for your cursor you will not be able to index the cursor in this mode, so you have to switch the buffering for your cursor to 3 (row) first, index it and set the buffering mode to 5 again.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform