Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple List Box Refresh
Message
From
02/01/2002 11:27:19
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
02/01/2002 11:20:42
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00599762
Message ID:
00599768
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform