UI ComboBox population

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

UI ComboBox population

Postby pmessina » Fri Oct 13, 2006 4:11 pm

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:

Postby MichaelNesmith » Fri Oct 13, 2006 4:38 pm

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 44 guests