DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: Count for DirectCellChannels

Property: Count for DirectCellChannels

Returns the number of elements in a DirectCellChannels collection.

Object.Count
ObjectDirectCellChannels
Object with this property
Object.CountLongInteger 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
In This Section
Was this information helpful?