
Compile error in StructGet?

jjweimer
I cannot figure out what I am doing wrong here.
I can do this ...
pvname = cwfile + "_ProcessVariables" string/G $pvname StructPut/S spv, $pvname
But this throws a compile error ... (Can't use $ in this way in a function).
pvname = cwfile + "_ProcessVariables" string/G $pvname StructGet/S spv, $pvname
Igor Pro 8.04
StructGet wants an SVAR in this situation:
(Storing into a string is different than reading from a string expression, which is why StructGet compiles differently.)
December 16, 2019 at 12:02 pm - Permalink
Oh. Yes, that makes sense. Thank you.
December 16, 2019 at 01:38 pm - Permalink