4.2.4.8
GetItemID
Description
Given a name, returns a valid ItemID that can be passed to OPCItems Add method.
Syntax
GetItemID(Leaf As String) As String
Part Description
Leaf
The name of a BRANCH or LEAF at the current level.
Remarks
The server converts the name to an ItemID based on the current “position” of the browser. It will not
correctly translate a name if MoveUp, MoveDown, etc. has been called since the name was obtained.
Example AnOPCServerBrowser.ShowLeafs
For I = 1 To AnOPCServerBrowser.Count
Set AnOPCItemID = AnOPCServerBrowser.GetItemID(I)
Next I
‘ or
AnOPCServerBrowser.MoveDown “Mixing”
Set AnOPCItemID = AnOPCServerBrowser.GetItemID(“FIC101.PV”)
Do'stlaringiz bilan baham: |