Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Hi I have a function and I return the following as a structure. RETURN, {A:A, $ B:B, $ C:C} When I want to return just one RETURN, {A:A} I got the following error ''Struct expression not allowed in this context: <STRUCT Array[1]>.'' Does anyone came across with something like this before? With thanks
Can you show us a minimal example that gives that error message? Because this appears to work: stru.pro: ---- function test, X A = X RETURN, {A:A} end help, test(15) end ---- IDL> .rn stru % Compiled module: TEST. % Compiled module: $MAIN$. ** Structure <cf57b8>, 1 tags, length=2, data length=2, refs=1: A INT 15