setGlobalValue()

eSignal EFS 2

setGlobalValue()

Top  Previous  Next

 

setGlobalValue( varName, value )

 

This function creates a true global variable and sets it to the specified value. Global variables are accessible to other scripts running in other charts.

 

Parameters

 

varName

the name to assign the global variable (text string)

value

the value to assign the global variable

 

Usage

 

function main() {

var myVar;

 

       ...

       ...

 

       if ( myVar > 0 ) {

               setGlobalValue( "myStatus", 100 );

       }

       else {

               setGlobalValue( "myStatus", -100 );

       }

 

       return( myVar );

 

}

 

getGlobalValue()

removeGlobalValue()