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

AVEVA™ InTouch HMI

​.NewIndex 点域

  • Last UpdatedFeb 05, 2018
  • 1 minute read

返回通过 wcAddItem() 或 wcInsertItem() 添加到列表框或组合框的最后一个项目的整型索引(标记名)。

类别

Windows 控件

用法

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

参数

ControlName

Windows 控件的名称。例如,ListBox_4。

Tagname

标记名,包含添加到列表或组合框的最后一个项目的整型索引。对于空白列表,返回值为 -1。

附注

此属性仅在运行时可用。

数据类型

整型(只读)

适用范围

列表框与组合框。

示例

以下语句检索“ListBox_1”列表框中最近添加的项目的索引,并将该值写入内存整型标记名 NewItemIndex。

GetPropertyI("ListBox_1.NewIndex", NewItemIndex);

另请参阅

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