DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

use of GetReference for ChnFind

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 2
(2,439 Views)
Solution
Accepted by topic author levan8421

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)
0 Kudos
Message 2 of 2
(2,417 Views)