UI ComboBox population

Got a problem you cannot solve? Try here.
Post Reply
pmessina
Posts: 12
Joined: Tue Aug 29, 2006 10:05 am

UI ComboBox population

Post 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.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply