call()

ICE Data Services -

call()
Previous  Top  Next

call( efsname [, arguments] )

This function is provided for backwards compatibility with EFS1. It allows you to call another script and retrieve the return values from that script.

Note: call() has been replaced in EFS2 by the new efs() function.


Parameters

efsname
the path and filename of the EFS script to be called
arguments
list of input parameters, if any, required by the script being called


Usage
function main() {
var myVar;
   ...
   ...
   //call a second script that calculates a custom moving average
   //and retrieve the current value. In this example, the script
   //we are calling has one input parameter.
   myVar = call( "myCustomMA.efs", 10 );

}