PopulateComboBox from VbScript - Parameter Definitions - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bhodso
Posts: 19
Joined: Sun Apr 20, 2008 1:11 am

PopulateComboBox from VbScript - Parameter Definitions

I was able to get your sample code up and running. When I adapted it to my own specific needs, I found there were a couple of fields I can't understand or duplicate:

Code: Select all

' This will be used to specify the combobox control and data that will 
  ' be inserted in the control.
  ' The format is:
  ' ComboProp#OrderStart#OrderDelta|Value1#Text1|Value2#Text2|...
  ' OrderStart and OrderDelta are optional, as well as the Text for each 
  ' item. If the text is not specified, WI will show the value in the combo. 
  ' Values must be unique.
  AIComboData = comboProp & SEP_1 & CStr(orderStart) & SEP_1 & CStr(orderDelta)
What specifically are the following fields, what are some example values?

ComboProp
OrderStart
OrderDelta

I can't find any documentation for what exactly these three fields are and I can't tell from the function's comments block since they are passed in a function parameters with no comments about them.

I just want to assemble a string and pass it to my combo box property value to build a list of values in the combobox list.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: PopulateComboBox from VbScript - Parameter Definitions

Hi,

Please note that "ComboProp" represents the property of the combo box. This is used in the generic format to show how your properties should be passed to the custom action. In the Populate ComboBox and ListBox controls section of the ComboBox and ListBox controls tutorial the sample format uses "Property" instead of "ComboProp".

"OrderStart" and "OrderDelta" are explained in the same tutorial section (with examples).

If you have other questions, don't hesitate to ask.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”