DIAdem Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
dslemusp

Merge two element list

Status: Completed

Since DIAdem 2014 there is the AddElementList method (see the online help for that topic).

 

set oList = data.CreateElementList

oList.Add(xxx)                          ' add one Data-Element to the collection

oList.AddElementList(yyy)               ' add one Data-Element-List to the collection

 

Starting with DIAdem 2015 the method has an additional optional parameter selecting between different ways to merge the lists.

 

Marcus

Hi

 

I have create an Element List filtering some channels of a group

 

Dim mSyncLst, iGrp
Set iGrp = Data.Root.ActiveChannelGroup
Set mSyncLst = Data.GetChannels(iGrp.Name & "/ABC*") 'List With Several Channels

 

I would like to add to the mSyncLst the channels containing DEF. e.g. Data.GetChannels(iGrp.Name & "/DEF*"), which also contains several channels. Using the method Add mSyncLst, only allows to append one channel each time.

 

Thank you

1 Comment
MarcusP
Member
Status changed to: Completed

Since DIAdem 2014 there is the AddElementList method (see the online help for that topic).

 

set oList = data.CreateElementList

oList.Add(xxx)                          ' add one Data-Element to the collection

oList.AddElementList(yyy)               ' add one Data-Element-List to the collection

 

Starting with DIAdem 2015 the method has an additional optional parameter selecting between different ways to merge the lists.

 

Marcus