Parameters
VARIANT
Parameters Description
vIndex Index or name of curve window.
Example
Use of the "Getxxx" methods in the controls is illustrated on the basis of an example relating
to a toolbar button function.
'VBS201
Dim ctrl
Set ctrl = ScreenItems.Item("Control1")
Dim toolbu
Set toolbu = ctrl.GetToolbarButton ("ShowHelp")
HMIRuntime.Trace "Name: " & toolbu.Name & vbCrLf
HMIRuntime.Trace "Index: " & toolbu.Index & vbCrLf
HMIRuntime.Trace "Hotkey: " & toolbu.HotKey & vbCrLf
End Sub
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".
GetTrendWindowCollection method
Function
Returns the collection of all curve window objects of the OnlineTrendControl or
FunctionTrendControl as type "ICCAxCollection".
Syntax
Ausdruck.GetTrendWindowCollection()
Expression
Necessary. An expression that returns an object of the "ScreenItem" type.
Parameters
- -
VBS for Creating Procedures and Actions
1.14 VBS Reference
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
677