DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check whether a channel exists

Hello,
 
    I want to programatically check whether a particular channel already exists in the data portal before I create a new channel. How can this be achieved?
 
With warm regards,
Saurav
0 Kudos
Message 1 of 3
(6,065 Views)

Hello Saurav!

Just use CNo like this:

If CNo("MyChannel") = 0 Then
  ' Create the channel
End If

or if you want to know if the channel exist in a defined group

If CNo("MyGroup/MyChannel") = 0 Then
  ' Create the channel
End If

Matthias

 

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(6,061 Views)
Thanks, Matthias. It works!
 
With warm regards,
Saurav
0 Kudos
Message 3 of 3
(6,051 Views)