getItemAt

The getItemAt method gets the exported value or name for an item in a combo box or a list box.

 

Syntax

System.String getItemAt(System.Int32 nIdx, System.Boolean bExportValue);

 

Parameters

nIdx

[Optional] Index of the item to read. First item is zero. If it is not specified, it will select the current item.

bExportValue

[Optional] Whether to return an export value instead of item name.

 

Return Value

Returns the export value or name of the Field Object, otherwise, null.

 

Remarks

Member of field.

 

Example

var obj = this.getField("acSelection1");
obj.getItemAt(0);