ServerHandle property
Description | (Read-only) A server assigned handle for each item in the group. The ServerHandle uniquely identifies this item within the OPC Server namespace. The client must supply this handle to some of the methods that operate on OPCGroup objects (such as OPCGroups.Remove). |
Syntax | ServerHandle As Long |
Example | Dim lNumitems As Long Dim arHandles() As Long Dim arErrors() As Long Dim lTransID As Long Dim lCancelID As Long '/* Specify number of elements lNumitems = MyOPCGroup.OPCItems.Count ReDim arHandles(1 To lNumitems) For i = 1 To lNumitems '/* Pass in server handles for items to be read arHandles(i) = MyOPCGroup.OPCItems(i).ServerHandle Next 'I '/* Perform AsyncRead MyOPCGroup.AsyncRead lNumitems, arHandles, arErrors, lTransID, lCancelID |
Provide Feedback