06-21-2011 07:17 AM
I notice that there have been a number of changes to function behaviour such that referencing groups by their names has become increasingly difficult.
I have data files that may include a group whose name I know but not its index. ChnAlloc used to allow you to place a channel in a particular group without having to know the index of that group. Thus I could easily place new channels into my group whose name I knew but whose index I didn't. Now I can't do that.
Instead I need a way of determing the index of a group by its name. This should be easy and I can't for the life of me understand why there are so many ways of obtaining information about channels but not groups. Surely it would make sense to have a variable called GroupNo("Group Name")?? I considered using GroupPropValGet and asking for the group's index number but I can't because this function requires you to use the index number to specify the group in question.
Will I have to go to the lengths of writing a loop that passes through each group name and checks whether it matches the name I'm after??
Cheers,
Si.
06-22-2011 10:40 AM
Simon,
can you please provide some additional information:
- What version of DIAdem do you use?
- What did make working with groups moe complicated than it was before ? Can you please provde an example ?
Andreas
06-22-2011 04:42 PM
Hey Simon,
I use this in my code to get the group reference number from the group name...
Dim GrpName ' name of group
Dim GrpRefNum ' Group reference number
GrpRefNum = GroupIndexGet(GrpName)
Good Luck
--matt
06-23-2011 02:30 AM
Hi Matt,
Thanks! How did I not find that.....