PRB: List Box Shows .F. from an Empty Array (137182)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q137182 SYMPTOMS
A list box on a form displays .F. when the RowSource property is set to a
dimensioned array, as opposed to an array initialized from an SQL
statement, a view, or a remote view.
Furthermore, when your redimension the array and pass a value to the new
element, the list box does not reflect the new value.
CAUSE
Arrays, by nature, have a default logical (.F.) data type. If the list box
is not properly refreshed, it will not reflect the current values in the
array.
RESOLUTION
In the Init event for the form, change the data type to match the data
being passed to it. For example, if you are passing a character string to
the first element of the array, issue this command:
thisform.test(1)="" && No spaces between the quotation marks
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/12/2000 |
---|
Keywords: | KB137182 |
---|
|