Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the Value for a dropdown listbox
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Setting the Value for a dropdown listbox
Divers
Thread ID:
00218466
Message ID:
00218466
Vues:
63
I have a cmbBox that contains a list of dates. In the activate event of the form I put This.cmbBox.Value = DTOC(date()) to make the combo box show the first value. (the current date is always the first value). This works fine when I run the form from the command window -- Do Form myForm, but not when it is called by another form. To simplify I made a prg that has one line: DO FORM myForm. When I run the prg from the command window, the combobox remains blank, yet if I type DO FORM myForm directly into the command window the combobox displays the date. Any ideas where I'm going wrong here. There is probably a much simpler way to get the combo to display the first item. Thanks for you input.

Marcus.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform