Page 1 of 1

Structure and interface returns

Posted: Fri Aug 16, 2013 7:56 pm
by Nero
Hiho,

First: Sorry for my bad english :|

Ok let's say i have a procedure and want to return a pointer to an interface or a structure then i have to declare a new variable with the needed type defintition.

It would be nice if i could just write

Code: Select all

Procedure.MyInterfaceOrStructure Test()
; Do something
ProcedureReturn *MyInterfaceOrStructurePointer
EndProcedure
then i could just write somthing like this

Code: Select all

Result.l = Test()\MyInterfaceOrStructure_ProcedureOrVariable...()
I hope you guy's understand what i mean my english isnt the best :oops:

Mfg Nero