Method: Exists for ChannelGroups <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: Exists for ChannelGroups <DataPlugin>
Method: Exists for ChannelGroups <DataPlugin>
Checks whether a ChannelGroup object with a specific name exists.
iExists = Object.Exists(sName)
| Object | ChannelGroups <DataPlugin> Object with this method |
| sName | String Specifies the name of the channel group to be checked. |
| iExists | LongInteger 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