PRB: List from Array May Display Incorrect Number Of Elements (137179)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q137179 SYMPTOMS
When an array that is the RowSource for a list box is redimensioned to a
lower number of elements than originally displayed in the list box, there
will be blank rows in the list representing elements from the previous
array.
RESOLUTION
Issue one of the following (assuming the list box is placed on the form and
is named List1) after redimensioning the array to allow the list box to
display the correct number of elements:
Thisform.List1.NumberOfElements=_TALLY
* This can be used only if _TALLY is updated when the array is
* redimensioned, with SELECT... INTO ARRAY or COPY TO ARRAY
Thisform.List1.Requery
Thisform.List1.RowSource=Thisform.List1.RowSource
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/12/2000 |
---|
Keywords: | KB137179 |
---|
|