PRB: List Box Does Not Respect NumberOfElementsID: Q135841 3.00 3.00b WINDOWS kbui kbprg kbbuglist kbfixlist The information in this article applies to:
SYMPTOMSWhen you work with a list box in Visual FoxPro 3.0x and you specify a value for the NumberOfElements property and the ColumnCount property, the NumberOfElements will not be respected. In Visual FoxPro 5.0x, the same behavior occurs when the ColunmCount property is set to a value other than 1.
WORKAROUNDThe NumberOfElements property is used only when the RowSourceType for a list box is an array. When using an array as the RowSourceType, you can redimension the array to the number of elements you want to display. For example, you could add the following code to either the form's Load event procedure or the list box's Init event procedure:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Problem1. In the Command window enter the code below.
2. Create a new form.
3. Add a list box to the form. 4. Change the list box properties as follows:
5. Save and run the form.
KBCategory: kbui kbprg kbbuglist kbfixlist
KBSubcategory: FxotherGeneral VFoxWin buglist3.00 buglist3.00b fixlist5.00
Additional reference words: 3.00 3.00b
|
Last Reviewed: January 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |