Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple List Box Refresh
Message
De
02/01/2002 11:27:19
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
02/01/2002 11:20:42
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00599762
Message ID:
00599768
Vues:
13
Hi Scott you need to issue lisxtboxes.Requery() instead of .Refresh()

>This will probably seem like a pretty stupid question to most of you out there but here goes.
>
>I have a form with a combobox and two list boxes. On load the combobox value is preset and the list boxes are filled with items in a cursor that is created though ODBC and a external source. The lists are supposed to get repopulated when the combobox is changed and they just go blank.
>
>My combobox code sets both list boxes.RowSource = "", Requeries based on the combobox value, and then set the list boxes.RowSource back to the cursors. I then fire the list boxes .refresh. This works great for combo boxes but just leave the list boxes blank.
>
>Will someone please tell what I need to do to display the new lists?
>
>Please and Thank you.
>
>Scott
Alexandre Palma
Senior Application Architect
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform