DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: Count for Channels <DataPlugin>

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
In This Section
Was this information helpful?