Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement