08-07-2013 05:16 AM
Hi,
Does anyone know if there is a function to calculate the amount of Groups? I know there is one to calculate the amount of channels: ChnNoMax but I can't find one to calculate the amount of groups
Basically what I want to do is to erase all the groups in the data portal to start with an empty data portal. For this, the only function I know is: "Data.Root.ChannelGroups.Remove(groupnumber)" and I want to use it in a For loop but for this I need to know the last value of the For Loop which is the number of groups...
Thanks
Solved! Go to Solution.
08-07-2013 05:24 AM
Hi Leillo,
To count the number of channel groups use
Data.Root.ChannelGroups.Count
Please play a bit with the Data-API we implemented in DIAdem. It contains all data you see in the Dataportal. You can also have a look at the DIAdem script example. Most of them use it.
Greetings
Walter
08-07-2013 07:19 AM
Thanks
08-07-2013 04:32 PM
Please use
data.Root.Clear
to start with an empty portal and do not loop over all groups.
08-08-2013 02:57 AM
Even better, thank you