02-24-2016 05:42 AM
Hello DIAdem Users,
I want to look for a particular string in the Channel's name and once I find that string in a channel'sname then I want to have its index. How can I achieve that?
Regards
Solved! Go to Solution.
02-24-2016 06:03 AM - edited 02-24-2016 06:04 AM
Option Explicit dim groupObj : for each groupObj in data.root.ChannelGroups dim chObj : for each chObj in groupObj.channels if 0 <> inStr(1, chObj.Name, "ei", vbTextCompare) then MsgBox chObj.Name & " " & chObj.ChannelGroup.Properties("index").Value & " " & chObj.Properties("groupindex").Value end if Next Next
To determine the code to read such properties, you can just drag and drop it from property window into script.
02-24-2016 08:05 AM
Thank you!!!