Morning all,
I need to set the value in the combox to one of the items on the list.
I have the object filled in with the items.
But can't seem to figure out how to set the displayed value to one of the items in the list.
With a normal Combox I would do something like:
Combobox.SelectedIndex = Combobox.FindStringExact("Item text", -1)
Ok I think I found the line to use:
.ValueList.SelectedIndex = .ValueList.FindStringExact("reason", -1)
And I saw it set the Index to the correct item on the list.
But on the screen the combox object is blank. Not = "reason".
The DDL list of values does have the "reason" on it.
Why didn't it display the corect value?
Got it to work using;
Combobox.Text = Combobox.ValueList.SelectedItem.displaytext
How come the FindstringExact dosnt set it?