ComboBox.removeItem

Overview | Methods | This Package | All Packages

ComboBox.removeItem

Removes the specified item from the list box.

Syntax

public final void removeItem( int index )

public final int removeItem( Object value )

Parameters

index

The zero-based index of the item to remove.

value

The item to remove.

Return Value

The second syntax returns the zero-based index of the removed item; returns -1 if the item is not found in the list.

Exceptions

WFCInvalidArgumentException thrown if the specified index is not valid.

Remarks

When you remove an item from the list, the indices change for subsequent items in the list. All information about the deleted item is lost.

See Also   addItem