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
Usage
function main() { var myVar;
... ...
if ( myVar > 0 ) { setGlobalValue( "myStatus", 100 ); } else { setGlobalValue( "myStatus", -100 ); }
return( myVar );
}
|