Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1825
Setting the Selected Value in the Combox?
posted

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)

Parents
No Data
Reply
  • 1825
    posted

    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?

     

Children