Page 1 of 1

setting a intial value in a combo box

Posted: Tue Mar 01, 2011 2:36 pm
by Hapache
Hello,
I have a button type combobox with a list of value in menu items (00, 01, 02, 03,..).
And, I would like to script that during preOpenCard, the selected value of the combo is 02.
I tried many ways, but didn't find one working and didn't find something helping me in the documentation.
Does someone have any idea?

Thanks


Hapache

Re: setting a intial value in a combo box

Posted: Tue Mar 01, 2011 2:59 pm
by bn
Hi Hapache,

look at menuhistory.

Code: Select all

set the menuhistory of btn "myComboBox" to 2
regards

Bernd

Re: setting a intial value in a combo box

Posted: Thu Mar 03, 2011 2:17 pm
by Janschenkel
Or you can set the label property of the combobox button to the desired text.

HTH,

Jan Schenkel.

Re: setting a intial value in a combo box

Posted: Tue Mar 15, 2011 10:14 am
by Hapache
bn wrote:Hi Hapache,

look at menuhistory.

Code: Select all

set the menuhistory of btn "myComboBox" to 2
regards

Bernd
This is working perfectly
Thanks