Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display first item in a combo box
Message
From
02/09/1998 07:14:25
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00132166
Message ID:
00132243
Views:
15
>>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
Map
View

Click here to load this message in the networking platform