Structure Return Support
Posted: Wed May 05, 2010 10:11 am
Hey again,
A feature I would like to request is more support for returning structures from Procedures....
I know you can return the pointer of an object (variable, list, whatever) and then directly use a pointer from the procedure call, but it would be nice to support something like this;
Thanks,
Env
A feature I would like to request is more support for returning structures from Procedures....
I know you can return the pointer of an object (variable, list, whatever) and then directly use a pointer from the procedure call, but it would be nice to support something like this;
Code: Select all
; - Dummy Structure -
Structure myStruct
lValue.l
fValue.f
EndStructure
Procedure.myStruct myProcedure()
; - Create Return Variable -
myReturn.myStruct
; - Set Some Values -
myReturn\fValue = 12345.00
myReturn\lValue = 6789
; - Return Variable in its defined form -
ProcedureReturn myReturn
EndProcedure
; - Create Dummy -
dummy.myStruct = myProcedure()
Thanks,
Env