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

AVEVA™ Plant SCADA

Deleting Items from a List

  • Last UpdatedJul 13, 2023
  • 1 minute read

You can delete:

  • An individual item from a list.

  • The selected item from a list.

  • All items from a list.

If items cannot be deleted from a list at run time, no warning message is shown. Such items include Combo Box and List Box controls configured with enums or arrays.

To delete an individual item from a Combo Box or List Box list

  • In an action script, use the following method:

    ControlName.DeleteItem(Index);

    where ControlName is the name of the Combo Box or List Box control and Index is the index of the item you want to delete. The first item of the list has an index of 0.

    The item at the specified index is deleted, subsequent items are moved up the list.

To delete the selected item from a Combo Box or List Box list

  • In an action script, use the following method:

    ControlName.DeleteSelection();

    where ControlName is the name of the Combo Box or List Box control.

    The selected item is deleted, subsequent items are moved up the list.

To delete all items from a Combo Box or List Box list

  • In an action script, use the following method:

    ControlName.Clear();

    where ControlName is the name of the Combo Box or List Box control.

    All items of the control are deleted.

Configuring Combo Box and List Box Methods

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