Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re populating a listbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01303858
Message ID:
01303865
Views:
15
>>>What would be the best way to repopulate a listbox with diff values after the user has selected an orig value. In other words, I'm recycling the listbox.
>>
>>What is the rowsource for the listbox?
>>
>>I would probably use arrays, get selected items into another array, then clear the listbox, then copy the new array to listbox controlsource array and requery().
>
>No rowsource, just thisform.mylistbox1.Additem("-January") done in the form's init.

Ok, then save the selected items into an array and re-add them with AddItem after ListBox.Clear() method.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform