PRB: List Box Does Not Respect NumberOfElements (135841)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q135841 SYMPTOMS
When 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.
WORKAROUND
The 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:
DIMENSION testa[ 2, ALEN( testa, 2 ) ]
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbBug kbfix kbvfp500fix KB135841 kbAudDeveloper |
---|
|