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

AVEVA™ InTouch HMI

wcSaveList() 函数

  • Last UpdatedJan 15, 2020
  • 1 minute read

将列表框或组合框中的项目保存到文件。

类别

Windows 控件

语法

[ErrorNumber=]wcSaveList("ControlName","Filename");

参数

ControlName

Windows 控件对象的名称。例如,ListBox_1。实际的字符串或消息标记名。

文件名

包含文件的名称。如果该文件不存在,则创建它。实际的字符串或消息标记名。

附注

如需已返回错误号的列表,请参阅理解 Windows 控件错误消息

适用范围

列表框与组合框。

示例

在动作脚本运行时,以下语句将列表框中的当前项目保存到文件(c:\newlist.txt)中:

wcSaveList("ListBox_1", "c:\newlist.txt");

另请参阅

wcLoadList()、wcSetItemData()