Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox not refreshing
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00171860
Message ID:
00172508
Views:
23
>>This form I have contains a combo and a listbox with a dbf in it. The combo selects the index/sort order one wishes to see the listbox display its dbf. clicking on the desired item in the combo changes this index & refreshes the form but to actually see the listbox refreshed, you must actively click on it with the mouse.Why does it require this?
>>-TB
>
>Timothy,
>
>You must call the List's Requery method to refresh the list with the new order.
>
>This is a common oversight folks have with lists and combos. These two controls have an internal list of items that get displayed. The internal list of items is refreshed during Init and when the Requery mehod gets executed. The RowSource is only the place the control goes to populate the internal list of items. Once you alter the state of the RowSource you must call the Requery for the control to tell it to repopulate its internal list.
you're right, thanks again.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Reply
Map
View

Click here to load this message in the networking platform