Skip to Content
0
Former Member
Dec 29, 2015 at 05:14 PM

LISTBOX.setSelectedValue() not working or by design?

60 Views

I have a LISTBOX component in my application and when I set the selected value in the OnStartup procedure it works just fine using this line of code: LISTBOX_1.setSelectedValue("101").

However, if I try to execute the same line of code in an OnClick event of a button during runtime, nothing happens...the listbox's selected value does not change.

Is this inability to modify the selected value once the application is running by design (meaning we can only set the default selected value in the OnStartup procedure) or am I doing something incorrectly to manipulate the listbox's selected value once the application is running?