Programming Reference Manual
 
Syntax
 
GetModuleReturnCode[()]
 
Description
Gets a value, previously stored with SetModuleReturnCode. The function returns 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.
 
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