"deletePos"

Deletes a specific option from the combo box.

Synopsis

setValue(string shape, "deletePos", int idx);

shape.deleteAllItems(int idx);

Parameters

Parameter Description
shape Name of the object
idx Index of the option to be removed, starting with 1

Description

Deletes the option specified by index "idx" from the combo box. Remember that the index starts at 1.

Example

main()
{
  shape cb=getShape("COMBO_BOX1");
  cb.deletePos(3); // Deletes the 3rd item
}

Assignment

Combobox