Property: Count for DirectCellChannels
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Count for DirectCellChannels
Property: Count for DirectCellChannels
Returns the number of elements in a DirectCellChannels collection.
Object.Count
Object | DirectCellChannels Object with this property |
Object.Count | LongInteger with read access |
The following example creates two channels for a CellBlock and inserts these DirectAccess channels into the MyChannelGroup channel group:
Dim oCellBlock : Set oCellBlock = Workbook.Sheets(1).GetCellBlock(1,1) Call oCellBlock.Channels.Add("Channel1",eI32) Call oCellBlock.Channels.Add("Channel2",eI32) Dim ChannelGroup : Set ChannelGroup = Root.ChannelGroups.Add("MyChannelGroup") Dim i For i = 1 to oCellBlock.Channels.Count Call ChannelGroup.Channels.AddDirectAccessChannel(oCellBlock.Channels.Item(i)) Next