Property: Size for Channel <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Size for Channel <DataPlugin>
Property: Size for Channel <DataPlugin>
Returns the current number of values in a channel.
Object.Size
Object | Channel <DataPlugin> Object with this property |
Object.Size | LongInteger with read access |
The following example creates an implicit index channel for the MyChannel channel from the first channel group:
Dim oMyChn, bIndexChn bIndexChn = FALSE For Each oMyChn in Root.ChannelGroups(1).Channels If (oMyChn.Name="MyChannel") and not bIndexChn Then bIndexChn = TRUE Call Root.ChannelGroups(1).Channels.AddImplicitChannel("Index", 1, 1, oMyChn.Size, eI32) End If Next