The DataSet object at the Screen object must be addressed according to picture hierarchy
and
shall persist as long as the picture is displayed. The global object persists over the entire
Runtime time period.
Access uses the DataItem object.
Note
Objects of type Screen, Screens, ScreenItem, ScreenItems, Tag and TagSet cannot be
included in the DataSet list.
The DataSet object does not support any classes.
Usage
Using the "DataSet" list, you may:
● Output or process (enumerate) all objects in the list.
● Output the number of elements contained ("Count" property).
● To process a specific object in the list ("Item" method).
● Add an object to the list ("Add" method).
● Remove a specific object from the list ("Remove" method).
● Remove all objects from the list ("RemoveAll" method).
Access to list elements uses:
HMIRuntime.DataSet("Itemname")
For a picture-specific list, access uses:
HMIRuntime.Screens("Screenname").DataSet("Itemname")
In a picture, you may access the DataSet object of the picture by using:
DataSet("Itemname")
If upon access the stated name does not exist in the list, VT_Empty is returned and an
Exception is triggered.
VBS for Creating Procedures and Actions
1.14 VBS Reference
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
123