Share via


FormComboBoxControl.insert Method

Inserts a string value into the combo box list at the specified position.

Syntax

public void insert(str string, int index)

Run On

Client

Parameters

  • string
    Type: str
    The string value to add to the combo box list.
  • index
    Type: int
    The position to insert the string after. If you want the string to be the first item in the list, set the value to 0 (zero).

Examples

The following example shows how to insert a string into the combo box list.

this.insert("willow", 3);

See Also

FormComboBoxControl Class

FormComboBoxControl.add Method

FormComboBoxControl.delete Method