The information in this article applies to:
SYMPTOMSWhen selecting an item in a list box or combo box, one or more of the following errors may occur:
These errors occur when selecting the 253rd item from the list box or combo box and then selecting the 254th item. The RowSource property has to be set to a field in a table or query and RowSourceType can be set to either Alias, Fields, Query, or SQL statement. When selecting the 253rd item in the list box, it may be necessary to move the focus to another object and then back to the 254th item in the list box to get one of the errors to occur. In the combo box, just selecting the 253rd item and trying to click to display the combo list again triggers an error. These errors occur on any table as long as the table has 254 or more records. RESOLUTIONThere are two ways to prevent these errors from occurring. One is to create an array and change the RowSourceType property of the List or Combo box to Array and the RowSource property to that array name. The second is to use the Additem method to populate the list box or combo box. Following is a code example that could be added to the Init event of a list box or combo box to populate it. This code assumes that the table is already open.
STATUSThis problem was corrected in Visual FoxPro 6.0. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words: listbox combobox
Keywords : kbVFp kbVFp500 kbVFp600 FxtoolFormdes |
Last Reviewed: May 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |