02-12-2020 08:11 AM
Hi,
After a recent upgrade to 2019 I have had to change the channel reference style used by a variable from the channel number to the channel name (for reasons I won't bother you with).That is to say, where I used to have:
HWChn = 2
I now have:
HWChn = [1]/HW Angle
Now I find that the following line doesn't work:
L1 = Find("Ch(" & HWChn & ") = ChnValMax(" & HWChn & ")")
The error message suggests that the / symbol is an attempt to undertake a mathematical operation in text.
Try as I might I cannot find the right combination of double quotes, uses of str(), etc, to overcome the problem. Can anyone help?
Thanks, Simon.
Solved! Go to Solution.
02-12-2020 08:47 AM
L1 = Find("Ch(""" & HWChn & """) = ChnValMax(""" & HWChn & """)")
02-12-2020 08:55 AM
Thanks. I didn't try enough quotation marks......