Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Industrial Graphic Editor

Add and insert items into a list

  • Last UpdatedJul 08, 2024
  • 1 minute read

You can add an individual item:

  • To the end of the list.

  • Above the currently selected item.

To add an item to a Combo Box or List Box list

  • In an action script, use the following method:

    ControlName.AddItem("ItemCaption");

    where ControlName is the name of the Combo Box or List Box control and ItemCaption is the new item you want to add.

    The item is added to the end of the list.

You can specify an additional parameter writeToSelectedItem in the .AddItem function for Combo Box controls. If writeToSelectedItem is false, the newly added Item is not written to the reference configured in the Combo box’s Selected Item Value. For example: Controlname.AddItem("ItemCaption", bool writeToSelectedItem);

To insert an item in a Combo Box or List Box list

  • In an action script, use the following method:

    Controlname.InsertItem("ItemCaption");

    where ControlName is the name of the Combo Box or List Box control and ItemCaption is the new item you want to insert.

    The item is inserted above the currently selected item in the list.

TitleResults for “How to create a CRG?”Also Available in