comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: error with struct expression
items: Re: error with struct expression

error with struct expression
type: item
description: 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
creator: g.nacarts
date: 2014-08-15T07:52:18-00:00

Re: error with struct expression
type: item
description: 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
creator: Mats Löfdahl
date: 2014-08-15T13:31:48-00:00