Hi,
I'm trying to convert a string channel to hexadecimal values using a VBS script.
If I use the channel name directly into the equation, the script works fine and I can convert the channel into hexadecimal values.
Call Calculate("ch(""[1]/variable_new"") = CLng(""&H"" & ch(""[1]/variable""))")
However, I want to select first the channel into the Data portal, and the run the script over the selected channel
For Each oElem in Portal.Structure.Selection
str1 = oElem.Name
str2 = oElem.Name & "_new"
Call Calculate("ch(str2) = CLng(""&H"" & ch(str1))")
next
I get the following error when I run the script:
Error message from DIAdem command kernel:
Cannot execute calculation because the input channel "CH()" is unknown"
Does anybody know how to solve this problem?
Thanks in advance.