Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting in a ComboBox
Message
 
To
29/05/2001 15:00:23
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00512344
Message ID:
00512390
Views:
9
>>>I have a ComboBox with RowSourceType = 6 - Alias and Style = 2 - DropDown List. How do I sort the displayed items? Thanks!
>>>
>>>Regards, Renoir
>>
>>
>>You need to set an index on the table in the order you want.
>
>Hey Craig,
>
>Did that... Set the order in the GotFocus and issued a Requery. There are multiple indexes on the table and the primary one is not the one I want to use in the Combo. Do I need to populate and Requery at a specific place for the order to be refreshed?
>
>Renoir

You might try to use RowSourceType = 3 - SQL Statement (if appropriate) and order it the way you want to.
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
Reply
Map
View

Click here to load this message in the networking platform