Link Search Menu Expand Document

SSpread.TypeComboBoxRemoveItem Method

Explanation Deletes one list item from the combo box cell.

Only valid for cells with $CellTypeComboBox (combo box type) set in the CellType property. Use the TypeComboBoxClear method to remove all list items.
Call format TypeComboBoxRemoveItem(col, row, index)
Return value None
Arguments col Combo box cell column number
row Row number of combo box type cell
index List items to delete
Exception None
Example of use
    Col = 1;
    Row = 1;
    CellType = $CellTypeComboBox;
    TypeComboBoxList = "Remove All \tItem 1\tItem 2\tItem 3\tItem 4\tItem 5";
    
    Function OnComboCloseUp(e) {
        if (e.SelChange == 0) {
            TypeComboBoxClear(e.Col, e.Row);
        } else if (e.SelChange > 0) {
            TypeComboBoxRemoveItem(e.Col, e.Row, e.SelChange);
        }
    }
    
Related item CellType property
TypeComboBoxClear method