insertItemAt

The insertItemAt method insert a new item in a combo box or a list box.

 

Syntax

insertItemAt(System.String cName, System.Boolean bExportValue, System.Int32 nIdx);

 

Parameters

cName

name of the new item.

bExportValue

[Optional] Exported value when the item is selected.

nIdx

[Optional] Index where the item will insert. Zero for the first item and -1 to the end. If it is not specified, it will select the current item.

 

Remarks

Member of field.

 

Example

var obj = this.getField("acSelection1");
obj.insertItemAt("Item1");