Thanks Jon,
This appears to be the much easier way I was looking for. However, this seems to work (or not work) the same way. When I type DO FORM myForm in the command window, the value appears in the combo. When I type DO myPrg in the command window, the combo is blank. myPrg has one line - DO FORM myForm. Any ideas? Thanks for the tip though. I'm getting a little punchy reading about all the different properties and methods for this thing.
Marcus.
>This.cmbBox.Value = This.cmbBox.List(1)
>
>>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.
Précédent
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