Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the order of a cursor
Message
 
 
To
10/11/2005 11:38:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01067195
Message ID:
01067211
Views:
14
>>>I have a grid which is populated from a cursor. I have an option group in which I want to change the sort order of the records in the grid. Do I have to run the query again and change the order by statement and then refresh the grid or can I change the order without doing this?
>>>
>>>Many Thanks
>>
>>What kind of cursor it is? If this is a result of select statement from native VFP database, you need to add READWRITE option to your select code. Then you would be able to index it on the fly.
>>
>>If this is a different kind of cursor, you need to have a separate cursor for your grid created with CREATE CURSOR command. This cursor allows you to index it.
>
>Naomi,
>I don't know of a cursor type that I can't index.
>Cetin

Well, if this is SELECT .. from NATIVETable into cursor ... NOFILTER
you would be able to index only once.

I'm not sure about SPT cursors either.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform