Note
If you use the "Get..." methods to access properties of a control, you must use the latter part
of
the property name. For example, if the index of a toolbar button function is not addressed
via ".ToolbarButtonIndex" but via ".Index".
GetMessageColumnCollection method
Function
Returns the collection of all column objects of the AlarmControl as type "ICCAxCollection".
Syntax
Expression.GetMessageColumnCollection()
Expression
Necessary. An expression that returns an object of the "ScreenItem" type.
Parameters
- -
Features and functions of the ICCAxCollection
The following properties are available for the ICCAxCollection:
● Count
● Item
The following functions are available for the ICCAxCollection:
● AddItem(vName) As Object
● RemoveItem(vIndex)
Example
Use of the "GetxxxCollection" methods in the controls is illustrated on the basis of an example
relating to the toolbar button functions.
'VBS202
Dim ctrl
Set ctrl = ScreenItems.Item("Control1")
Dim coll
Set coll = ctrl.GetToolbarButtonCollection
VBS for Creating Procedures and Actions
1.14 VBS Reference
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
655