home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
ibm1
/
do101j2.arj
/
CLEAR.SCR
< prev
next >
Wrap
Text File
|
1991-12-04
|
1KB
|
46 lines
.pg wi full clr cy
COMMAND NAME»gray«: »%t« ClearVariables »ye«
/CLEAR [ALL|CURRENT|{variable}]
/cw
Because variables take up memory, in larger scripts or scripts
executed from other scripts, you may wish to delete the variables
from memory as appropriate. The »%t«ClearVariables»#« command
accomplishes this.
It can be issued with one of three parameters:
»cy«ALL»#« Clears »ye«ALL»#« variables. This includes any variables set
in the »ma«DO.CFG»#« script. This command is normally issued
only when running »%t«DO»#« in interactive mode.
»cy«CURRENT»#« Clears all variables created by the »wh«current script»#«.
»cy«{variable}»#« Clears the named variable.
.pg clr
Here are some examples.
Press »bo«<enter>»#« to execute each of the commands.
First let's set three variables:
|/SET V1 1111111111
|/SET V2 2222222222
|/SET V3 3333333333
/GOSUB DispVars
Now let's clear variable V1 [%V1]
|/CLEAR V1
/GOSUB DispVars
/VERSION
Now let's clear all variables created by this script:
|/CLEAR CURRENT
:DispVars
.reset
V1 = [%V1]
V2 = [%V2]
V3 = [%V3]
/RETURN
/ENDEXEC CLEAR