Versions Compared

Key

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

...

ParameterDescription
/NAME/A name that can contain any character except for the / (forward slash).
VariableThe variables specified in the variable list retain their values until specifically freed by FreeCommon.

To ensure that the source code that uses labeled common variables stays up to date, put the Common declaration in an insert record. When the labeled common declaration changes, recompile all source that inserts the declaration. When you put a Common statement in Insert, you can use OpenInsight's Impact Analysis feature to determine the affected source code.

...

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