Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Re populating a listbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01303858
Message ID:
01303865
Vues:
16
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform