DADiSP Worksheet Functions > Function Categories > Macro and Command File Functions > CALL

 

CALL

Purpose:

Calls a command file N times.

Syntax:

CALL("comfile", n)

"comfile"

-

A string. The name of the command file to run.

n

-

Optional. An integer specifying the number of times to call the command file. Defaults to 1.

Example:

call("MYFILE.DSP", 2)

 

executes MYFILE.DSP twice from the current Worksheet.

Remarks:

CALL is useful for creating loops in a command file. Within a command file, use @CALL and @LOAD to CALL or LOAD other "sub" command files so that control is returned to the originating command file after the execution of the "sub" command file.

See Also:

LOAD