J.M.
First of all
>CODELOCK 1 scram.asc scram.asx
should have been
>CODELOCK 1 scram.asc scram.bak scram.asx
My error. I don't use this command very often.
About the difference between a simple command file and a procedure file:
Say scram.asc is
-- scram.asc
SET VAR x TEXT = 'x'
PAUSE 2 USING 'Hi There!'
OUT savex.txt
WRITE .x
OUT screen
RETURN
Then scram.asc is a simple command file. It can be executed with either RUN
scram.asc or QUIT TO scram.asx.
An application/procedure file would be the following code. Let us call it
scram.app with command modules scramx and scramy. It can of course have
many more modules. It is more complex than a simple command file and the
command modules within it cannot be run individually but must be run as
components of the larger unit.
$command
scramx
-- scramx.asc
SET VAR x TEXT = 'x'
PAUSE 2 USING 'Hi There!'
OUT savex.txt
WRITE .x
OUT screen
RETURN
$command
scramy
-- scramy.asc
SET VAR y TEXT = 'y'
PAUSE 2 USING 'Hi There!'
OUT savey.txt
WRITE .y
OUT screen
RETURN
This file would be codelocked with the command:
CODELOCK 5 scram.app scram.apx
The command modules within scram.apx are executed with commands of the form
RUN scramx IN scram.apx or
RUN scramy IN scram.apx
QUIT TO will not execute modules within scram.apx even though RBase
documentation says that it can.
Bernie