DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: Exists for Channels <DataPlugin>

Method: Exists for Channels <DataPlugin>

Checks whether a Channel object with a specific name exists.

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

The following example generates the SecondChannel in the first channel group only if the FirstChannel channel already exists:

Dim oGrp : Set oGrp = Root.ChannelGroups(1)
If oGrp.Channels.Exists("FirstChannel") Then
  Call oGrp.Channels.Add("SecondChannel", 2)
End If
In This Section
Was this information helpful?