DIAdem Help

Property: Count for Channels <DataPlugin>

  • Updated2024-09-12
  • 1 minute(s) read

Property: Count for Channels <DataPlugin>

Returns the number of elements in a Channels collection.

Object.Count
ObjectChannels <DataPlugin>
Object with this property
Object.CountLongInteger 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