Property: Count for Channels <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Count for Channels <DataPlugin>
Property: Count for Channels <DataPlugin>
Returns the number of elements in a Channels collection.
Object.Count
Object | Channels <DataPlugin> Object with this property |
Object.Count | LongInteger with read access |
The following example searches for the Offset channel property in all channels of the first channel group and doubles the assigned value:
Dim i, oMyProp For i = 1 to Root.ChannelGroups(1).Channels.Count For Each oMyProp in Root.ChannelGroups(1).Channels(I).Properties If oMyProp.Name = "Offset" Then oMyProp.Value = oMyProp.Value * 2 End If Next Next