General information
Category:
Forms & Form designer
>>I have a combo box and it is empty when I run the form. How do I make it show the first item in the array?
>>
>>Thanks
>
>
>At init event of the combo box issue:
>
>This.Value = myarray[1]
That doesn't seem to work. the value property of the combo box is expecting a logical value
from the help file
For CommandGroup, ComboBox, EditBox, ListBox, OptionGroup, and Spinner controls, the setting for the Value property is the character string or numeric value that is currently selected.
For an OptionButton control, the settings for the Value property are:
Setting Description
True (.T.) Indicates the button is selected.
False (.F.) (Default) Indicates the button isn't selected.
For a TextBox control, the setting for the Value property is the character string or numeric, date, datetime, currency, or logical value that is currently selected. The default setting is a character string.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only