Syntax: |
EXECUTE filename { p1 p2 ... } |
Defaults: | the default filename extension is
.pcm |
Examples: |
EXECUTE somefile.pcm |
This command causes program input to come from a command script file,
instead of from the keyboard. When the end of file is reached, input will
again be expected to be entered from the keyboard, or from a calling script
file. You may have up to 20
nested script files. The 'at'
sign, @
, is equivalent to 'EXECUTE
'. Within script
files, it is possible to have labels, GOTO
statements,
IF...THEN
blocks, and DO
loops.
Numbered parameter zero, that is, ?0
,
in a script always is replaced by the file name of the script. Use the
STRING
function to
convert it to a quote string. For example:
DISPLAY 'executing script file = '//STRING(?0)
If the file name is entered without a filename extension, the current
extension is automatically appended to the filename. The default script
file extension is .pcm
The SCRIPTEXTENSION
characteristic controls the file extension.
If filename
is a text variable, it is first replaced by its value.
Comments
Echo Lines
Keyboard Input
Abort
Parameters
Branching
Looping
Conditional statements