Jump to content

SpLoadFuncs: Difference between revisions

From EDM2
Created page with "Adds all spUtils functions. '''Syntax:''' CALL spLoadFuncs Example Code: bootdrv.cmd (spUtils Example Code): /* The env variable specified as argument is set to the d..."
 
Ak120 (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 13: Line 13:
  ELSE CALL VALUE varname,spGetBootdrive(),'OS2ENVIRONMENT'
  ELSE CALL VALUE varname,spGetBootdrive(),'OS2ENVIRONMENT'
  CALL spDropFuncs
  CALL spDropFuncs
[[Category:SpUtils]]

Latest revision as of 19:03, 26 February 2017

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