Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which methods to populate and keep fresh a list box
Message
De
17/01/2000 10:44:52
 
 
À
14/01/2000 17:45:09
Gail Heineman
Alaska Dept of Fish and Game
Anchorage, Alaska, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00318308
Message ID:
00318987
Vues:
28
Try putting that select/addlistitem code in the init event of the list box. Then, in the click event of the combo box, call out the list box init event. That should take care of the refresh problem. You'll have to do something about the initial (so to speak) choices in the list box (all, nothing or something in between), possibly by passing a parameter to it so it knows whether it's populating the listbox for the first time or not. You should also get rid of that code everywhere else, in case it ever has to be changed.

>Thanks for the suggestion, but I tried it, and still no joy (the list box is not updated until I click on it).
>By the way, I have the code in the following places: Init and Click method of the form, GotFocus of the list box, and Init and InteractiveChangeEvent of the combo box (except in the latter I refresh only formverlist). I also tried changing thisform.refresh to thisform.formverlist.refresh everywhere with no visible change in effect.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform