Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reordering a listbox
Message
From
05/03/2002 15:51:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00627651
Message ID:
00628650
Views:
19
Tommy,

You can modify the example I just sent you do pick up the data from a table and put the data in order....

Ric

>Thanks...
>
>What I really would like to do is manually order the contents programatically. Is there a way that you know of to pull that off?
>
>If I could bind the control to a table and still use the mover bars this would be very easy. Unfortunatly VFP won't allow you to use the mover bars with that type datasource.
>
>Tommy
>
>
>>Hi,
>>
>>Two ideas comes to mind.
>>1. order your list manually and not set an order.
>>2. add a listorder field that you fill in the order you want i.e. '0001', '0002', '0003' for the first, second, third records etc. then set order to that.
>>
>>HTH,
>>Arriyel
>>
>>>Is there a way to programatically change the order that things show up in a listbox?
>>>
>>>I am using the listbox and populating it manually so I can use the mover bars. I am saving the data successfully but I need to restore it a little differently.
>>>
>>>If the user selects multiple items from the list when I populate the list next time i need to order the items that were saved before to the top of the list.
>>>
>>>I tried setting Index, etc... but have had no luck.
>>>
>>>Thanks in advance for any help.
>>>
>>>Tommy
Previous
Reply
Map
View

Click here to load this message in the networking platform