Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help populating a listbox
Message
De
23/10/2002 21:01:40
 
 
À
23/10/2002 09:19:17
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00714319
Message ID:
00714621
Vues:
17
I had the same problem with performance on my mover form when using the AddItem method. It took more code, but I found that if I loaded the items into an array and then used the array as the rowsource for the listbox, the performance was great. To accomplish deleting elements from one listbox and adding them to the other, I used the listbox's listitemid as my array index and manipulated the arrays for each listbox. To keep things neat, I add a property to hold the array on to each listbox. You'll need to sort the arrays in code rather than using the listbox's sort property. Hope this helps.

Regards.

Joel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform