06-29-2017 09:17 AM
I create a very simple code just to detect value larger than 60 of channel "MWG/MWG".
Dim Ind : Ind = ChnFind("Ch(""MWG/MWG"") >= 60",1)
When I change use GetReference, it does not work any more although MWChName also has value "MWG/MWG"
Dim MWChName : MWChName = Data.Root.ChannelGroups(1).Channels(2).GetReference(eRefTypeNameName)
Dim Ind : Ind = ChnFind("Ch(MWChName) >= 60",1)
Please give me advice on this.
Thank you
Solved! Go to Solution.
06-29-2017 12:33 PM
Its a text that you need to conjunct.
The variable name
MWChName
can not be resolved.
Dim MWChName : MWChName = Data.Root.ChannelGroups(1).Channels(2).GetReference(eRefTypeNameName) Dim Ind : Ind = ChnFind("Ch(""" & MWChName & """) >= 60",1)