PRB: List from Array May Display Incorrect Number Of ElementsLast reviewed: September 25, 1995Article ID: Q137179 |
The information in this article applies to:
SYMPTOMSWhen 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.
RESOLUTIONIssue 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 -or- Thisform.List1.Requery -or- Thisform.List1.RowSource=Thisform.List1.RowSource STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
Example ResolutionModify the code in the click event of the command button, and add any one of the following after the SELECT command. This will allow the list box to display the array elements without the blank rows at the bottom of the list:
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |