Method: Item for Channels <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: Item for Channels <DataPlugin>
Method: Item for Channels <DataPlugin>
Returns the Channel object associated with a specific name or with a specific index.
Set oAbstractChannel = Object.Item(ChnNameorIndex)
| Object | Channels <DataPlugin> Object with this method |
| ChnNameorIndex | Variant Specifies the name or the index of the required channel. |
| oAbstractChannel | AbstractChannel Returned object |
The following example creates the Offset channel property if the third channel in the FirstChnGroup channel group is an implicit channel:
Dim oMyGrp, oMyChn Set oMyGrp = Root.ChannelGroups.Item("FirstChnGroup") Set oMyChn = oMyGrp.Channels.Item(3) If oMyChn.IsKindOf(eImplicit) Then Call oMyChn.Properties.Add("Offset",-5) End If