DIAdem Help

Method: Exists for ChannelGroups <DataPlugin>

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

Method: Exists for ChannelGroups <DataPlugin>

Checks whether a ChannelGroup object with a specific name exists.

iExists = Object.Exists(sName)
ObjectChannelGroups <DataPlugin>
Object with this method
sNameString
Specifies the name of the channel group to be checked.
iExistsLongInteger
The value is TRUE if the collection contains an object with the specified name.

The following example generates the SecondChnGroup channel group only if the FirstChnGroup channel group already exists:

If Root.ChannelGroups.Exists("FirstChnGroup") Then
  Call Root.ChannelGroups.Add("SecondChnGroup")
End If