getGlobalValue()

ICE Data Services -

getGlobalValue()
Previous  Top  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()