Page 1 of 1

UI ComboBox population

Posted: Fri Oct 13, 2006 4:11 pm
by pmessina
Is there a way to populate a combobox with an array of values?

Basically I want to be able to programatically set the ComboBox's Items property.

I tried creating a hidden control to set the Items property to an edit controls text property (which I initially tried formatting as a comma seperated string - I'm not really sure how the TComboBoxList works) but I am getting "Invalid property" value when I try to test the dialog box.

Any help is appreciated.

Posted: Fri Oct 13, 2006 4:38 pm
by MichaelNesmith
Set the Items property of the ComboBox to a variable - a single line, and a variable like $VAR$ on that single line.

Then in your script, set $VAR$ to something like Item1$NEWLINE$Item2$NEWLINE$ItemLast.