DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Channels

Hi

 

I want to get all channels from an given channelgroup.

 

But I only get the first and the last channels in from the channelgroup.

 

ChannelsStr1=Data.Root.ChannelGroups(1).Channels.GetReference(eRefTypeOnlyName)

Call MsgBox("ChannelsStr:" + ChannelsStr1)

0 Kudos
Message 1 of 3
(3,371 Views)

Hi Reol

 

Data.Root.ChannelGroups(1).Channels is a collection of channels. So you can run a loop to get information of each element of this collection:

Dim oMyChannel, oMyGroup
Set oMyGroup = Data.Root.ActiveChannelGroup
For Each oMyChannel in oMyGroup.Channels 
  Call MsgBoxDisp(oMyChannel.Name)
Next

Hope this helps!

 

Winfried

0 Kudos
Message 2 of 3
(3,367 Views)

Thanks

 

Working now

0 Kudos
Message 3 of 3
(3,286 Views)