getGlobalValue()

eSignal EFS 2

getGlobalValue()

Top  Previous  Next

 

getGlobalValue( varName )

 

This function retrieves the value of a global variable. Global variables are accessible to other scripts running in other charts.

 

Parameters

 

varName

the name that was assigned to the global variable

 

Usage

 

function main() {

var myVar;

 

       ...

       ...

 

       myVar = getGlobalValue( "myStatus" );

       if ( myVar == 100 ) {

               setBarFgColor( Color.green, 0 );

       }

       else if ( myVar == -100 ) {

               setBarFgColor( Color.red, 0 );

       }

 

 

}

 

setGlobalValue()

removeGlobalValue()