Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
common /Report Data/ RD_ReportID@, RD_SelCritera@,| RD_Unused_2@, RD_Unused_1@
 

Notes

Labeled common variables must be defined by a Common statement prior to their use.

...

Code Block
* Example 1:
Subroutine Test1 (void)
*Set up common
Common /MyGlobals/ MG_message@
*call subroutine that uses common
MG_message@ = "Hello world!"
call Test2()
*destroy common (frees up memory)
freecommon "MyGlobals"
return
* Example 2:
Subroutine Test2 (void)
*Set up common
Common /MyGlobals/ MG_message@
*use common variable
call Msg(@window, MG_message@)
return

 

...

See also

FreeCommon