SpLoadFuncs

From EDM2
Revision as of 17:03, 26 February 2017 by Ak120 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Adds all spUtils functions.

Syntax: CALL spLoadFuncs

Example Code:

/* bootdrv.cmd (spUtils Example Code) */
/* The env variable specified as argument is set to the drive letter of */
/* the boot volume, or if called without parameter, writes it to stdout */
CALL RXFUNCADD 'spLoadFuncs','spUtils','spLoadFuncs'
CALL spLoadFuncs
PARSE ARG varname rest
IF varname= THEN SAY spGetBootdrive()
ELSE CALL VALUE varname,spGetBootdrive(),'OS2ENVIRONMENT'
CALL spDropFuncs