TypeOfCallInfo¶
Include: Use System\Reflection.pkg
See Also: DfType, StructTypeOfCallInfo, ArrayTypeOfCallInfo
Purpose¶
Inside a function, reports the declared return value type requested by the caller.
Syntax¶
TypeOfCallInfo to eType
Arguments¶
eType
: Receives a DfType constant.
Returns¶
This command writes the return-call type to eType.
Behavior¶
When called as a procedure or when no function return call information is available, TypeOfCallInfo returns C_TypeNone. Otherwise it returns the return variable's runtime type.
Example¶
Function CreateResult Returns Variant
DfType eType
Variant vResult
TypeOfCallInfo to eType
If (eType = C_TypeStruct) Begin
// Build a struct result for the caller.
End
Function_Return vResult
End_Function