home *** CD-ROM | disk | FTP | other *** search
- .pg wi full clr cy
- COMMAND NAME»gray«: »%t« ExecScript/EndExec »ye«
-
- /{ScriptName}[ {parameter1}..]
- /ENDEXEC [CLEAR]»gray«
- /DRAW H 5 1 78
- .wi 1 6 79 24 #
- The »%t«ExecScript»#« command allows you to run another script from
- the current script. Scripts can be nested »gr«10»#« deep. When »%t«DO»#«
- encounters an »%t«EndExec»#« command in a script, it returns to the
- statement just after the »%t«ExecScript»#« command in the calling
- program.
- »ye«
- The number of scripts that can be nested may be affected by
- the amount of memory available in your computer.
- .pg #
-
- Scripts can be passed parameters. These are stored in
- variables »cy«~123script~12501»#«, »cy«~123script~12502»#« etc. These parameters are
- deleted when the called script ends.
-
- If the »cy«CLEAR»#« parameter is added to the »%t«EndExec»#« command »ye«ALL»#«
- variables created by that script are deleted.
- .pg clr
- We'll use the »%t«/VERSION»#« command to show you where you are.
-
- |/VERSION
- Now let's execute the script »ye«TUTOR2.SCR»#« using this command
-
- |/TUTOR2
- .clr #
- /VERSION
- We are now back in the original »gr«EXEC.SCR»ye« file.»#«
- Again, notice the »%t«/VERSION»#« display.
-
- »wh«This tutorial is set up as a series of scripts.»#« Each
- script handles one aspect of the tutorial such as a single
- command. You can examine this script for more information
- about the »%t«ExecScript»#« command.
-
- /ENDEXEC CLEAR
-