You are here: Core Reference > Coding > Scripting > ComboBox.Delete

ComboBox.Delete

The ComboBox.Delete function works in a similar way to the ComboBox.Insert function, except that it removes options from the list rather than inserts them.

Syntax

ControlObject.Delete(Index Number)

Where Object is the name of the variable (declared in your script) that is used to store the Combo Box Control Object that is returned by the AddComboBox function.

Description

Removes a selectable option from the Combo Box. The Index Number defines which option is removed (its number corresponds to the position of an option in the list, with 0 being at the top and the highest number being at the bottom).

Arguments

Index Number {integer}

A number that corresponds to the position of the option in the Combo Box list.

Returns

Integer

Example:

ComboBox1.Delete(4)

Where:

  • ComboBox1 is the name of the variable that stores the ComboBox Control Object returned by the AddComboBox function
  • 4 is the Index Number for the option that is being removed.

ClearSCADA 2015 R2