DhSelectBox.insertItem

Overview | Methods | This Package | All Packages

DhSelectBox.insertItem

Inserts an item into the list at the selected index.

Syntax

public void insertItem( int index, String strText )

public void insertItem( int index, String strText, boolean fSelected )

public void insertItem( int index, String strText, boolean fSelected, String strValue )

Parameters

index

The zero-based index at which to add new item. If less than 0 or greater than the current number of items, the item is added to the end of the list.

strText

The text for the new item.

fSelected

The selected state of the new item.

strValue

The VALUE attribute for this item (for HTTP form submissions).