DADiSP Worksheet Functions > Function Categories > Series Processing Language (SPL) > SPLLOADALL

 

SPLLOADALL

Purpose:

Compiles and reads one or more external SPL files into the Worksheet.

Syntax:

SPLLOADALL(

"filespec", recurse, overwrite, expand, verbose)

"filespec"

-

String. The SPL filename specification with optional * or ? wildcard characters.

recurse

-

Optional. An integer, recurse flag.

 

0:

do not recurse into sub-directories (default)

 

1:

recurse into sub-directories

overwrite

-

Optional. An integer, replace macro flag.

 

0:

do not replace macro of same name

 

1:

replace macro if it exists (default)

expand

-

Optional. An integer, include source code.

 

0:

do not include source code in OPL file

 

1:

include source code (default)

verbose

-

Optional. An integer, message flag.

 

0:

do not provide error messages

 

1:

display compile errors (default)

Returns:

An integer, the number of files compiled.

Example:

splloadeall(".\spl\dsp\*.spl")

 

Compiles and loads all SPL files in the .\spl\dsp, directory.

Example:

splloadeall(".\spl\*.spl", 1)

 

Compiles and loads all SPL files in the .\spl directory including sub-directories.

Remarks:

By default, SPLLOADALL creates OPL files and also loads the functions into the Worksheet.

 

Any errors found during compile are written to the ASCII text file, filename.err.

See Also:

FUNCTIONS

SPLCOMPILE

SPLCOMPILEALL

SPLLOAD

SPLREAD

SPLWRITE