Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

​.NewIndex Dotfield

  • Last UpdatedNov 07, 2016
  • 1 minute read

Returns the integer index (Tagname) of the last item added to the list box or combo box via the wcAddItem() or wcInsertItem().

Category

windows control

Usage

[ErrorNumber=]GetPropertyI("ControlName.NewIndex", Tagname);

Parameters

ControlName

Name of the windows control. For example, ListBox_4.

Tagname

A tagname containing the integer index of the last item added to the list or combo box. For empty lists, a value of -1 is returned.

Remarks

This property is only available in run time.

Data Type

Integer (read-only)

Applies To

List boxes and combo boxes.

Example

The following statement retrieves the index of the most recently added item in the list box named "ListBox_1" and writes that value to the memory integer tagname NewItemIndex.

GetPropertyI("ListBox_1.NewIndex", NewItemIndex);

See Also

GetPropertyI(), wcAddItem(), wcInsertItem(), .ListIndex, .TopIndex

TitleResults for “How to create a CRG?”Also Available in