Programming Reference Manual
 
Syntax
 
SetModuleReturnCode value
 
Description
Sets a value, later to be retrieved with GetModuleReturnCode. The instruction uses a  Variant type, so any value can be stored.
 
GetModuleReturnCode and SetModuleReturnCode allows values to be interchanged between separate CCL modules within the same active user thread.
 
Parameter
Description
value
Value that is to be shared with other CCL modules.
See Also
Example
 
‘(in module1)
Sub Main
    SetModuleReturnCode “testing 123”
End Sub
 
‘(in module2)
Sub Main
    MacroRun “module1”
    Debug.Print GetModuleReturnCode  ‘testing 123
End Sub