5

I'm looking for a way to change the selected value of a drop down list through the OnSelect of a button. I would imagine this expression for the OnSelect would have worked:

dropDownList1.Selected.Value = "01"

...but it doesn't. I get no error or warning message. It just doesn't seem to do anything.

The drop down list has the following values: ["12","01","02","03","04","05","06","07","08","09","10","11"]

Thanks!

DeveloperMCT
  • 335
  • 2
  • 4
  • 14

1 Answers1

5

Try this:

  • dropDownList1
    • OnChange: Set(varDDValue, dropDownList1.Selected.Value)
  • button
    • OnSelect: Set(varDDValue, "whatevertheheckyouwant") (must be a value that is present in the dropdown Items property)
  • dropDownList1
    • Default: varDDValue
SeaDude
  • 3,725
  • 6
  • 31
  • 68