Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display first item in a combo box
Message
De
02/09/1998 07:14:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00132166
Message ID:
00132243
Vues:
14
>>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
Fil
Voir

Click here to load this message in the networking platform