ComboBox Show Item - Forum

Forum Navigation
You need to log in to create posts and topics.

ComboBox Show Item

How do I get a ComboBox to show the first item in a list without clicking on it?

proforma.guyot has reacted to this post.
proforma.guyot

@pauljonestindall

How do I get a ComboBox to show the first item in a list without clicking on it?

SetVar "[ComboBox1]" "firstItemInListGoesHere"

If the contents of the ComboBox are dynamic (i.e. not known at design time) ...

ListBoxGetItem "ComboBox1" "1" "[firstItem]"
SetVar "[ComboBox1]" "[firstItem]"

 

 

proforma.guyot has reacted to this post.
proforma.guyot

Nope. Not working for me for some reason. I'm sure I've tried this and a dozen other variations. Yeah, I don't get it either.

@pauljonestindall

Not working for me for some reason

I tested it out before posting ... can you upload a sample .pub file with just the ComboBox and the afore mentioned script(s) ?

It was also tested by me and it works perfectly

salu2