The information in this article applies to:
SYMPTOMSWhen the RowSource property of a ComboBox or ListBox control is set to a value other than 0-None and there are many items in the list, properties of individual items are lost when you scroll down the list. For example, if you select several items from the list, scroll down the list, and then scroll up the list, the selected items might not be highlighted anymore. CAUSEThis behavior is due to architectural limitations in the manager that handles the lists. When the RowSource is non-zero, the list manager creates 60 items internally and recycles them. This improves performance for lists that have a large number of items. For example, if a list is populated with a million-row table, Visual FoxPro does not have to take the speed and memory penalty associated with creating a million list items. Because they are recycled, properties set on the items are lost during operations such as scrolling. This behavior does not occur in Visual FoxPro 5.0. RESOLUTIONPopulate the controls with the AddItem and RemoveItem methods. These methods create non-recyclable items that are guaranteed to retain their properties. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words: List box
Keywords : kbVFp FxprgClassoop |
Last Reviewed: August 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |