DIAdem Help

Property: Count for ChannelGroups <DataPlugin>

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

Property: Count for ChannelGroups <DataPlugin>

Returns the number of elements in a ChannelGroups collection.

Object.Count
ObjectChannelGroups <DataPlugin>
Object with this property
Object.CountLongInteger with read access

The following example searches in all channel groups for the Test_Status property and changes the value of this property:

Dim i, j, oMyProp
For j = 1 to Root.Channelgroups.Count
  Set oMyProp = Root.ChannelGroups(j).Properties
  For i = 1 to oMyProp.Count
    If oMyProp(i).Name = "Test_Status" Then
      oMyProp(i).Value = "failed"
    End If
  Next
Next