Develop > Programming > System language > Variable pools

Variable pools

Variable pools are functional groupings of variables within Service Manager. There are currently four variable pools:

  • Global

    A global variable is visible to the entire system. It begins with $G. or $lo..

  • Local

    A local variable is only visible to the RAD application in which it was defined. It begins with $L..

  • Parameter

    A parameter variable is defined on a parameter command panel. It may contain a value passed in from another application. By convention, parameter variables are written in uppercase letters, such as $PHASE or $GROUP.LIST. Parameter variables are invisible to the debugger.

  • Thread

    A thread variable is only visible to the thread in which it was defined. The same variable in different threads has different values, even when the threads are spawned by the same parent.

Variable pool Variable Comments
Global $G.  
Global $lo.  
Global $MARQUEE.  
Global $SYSPUB.  
Local $L. There is only one local variable. It can contain many pieces of data, similar to the way a structure contains many pieces of information. For example, $L.env and $L.file are two pieces of data that $L. can contain.
Parameter

$PHASE

$GROUP.LIST

These are just a few examples, there are many parameter variables.
Thread

$file

$array

$post

These are just a few examples, there are many thread variables.