home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
ibm1
/
do101j2.arj
/
SPECIAL.SCR
< prev
next >
Wrap
Text File
|
1991-12-20
|
3KB
|
73 lines
.pg clr ye
SPECIAL VARIABLES
»#«
/box 4 1 76 3 11 7 ""
.wi 1 5 80 25
»%t«DO»#« has several special variables which can be used in any
place where variables are expanded. These variables are
enclosed in braces ("»ye«{}»#«") and must be entered »re«EXACTLY»#« as
shown.
.pg
»gr«~123date~125»#« Displays the »cy«current date»#« padded on the left to
eight charaters with spaces ("»gr«MM/DD/YY»#«")
»gr«~123time~125»#« Displays the »cy«current time»#« padded on the left to
eight characters with spaces ("»gr«HH:MM:DD»#«");
»gr«~123home~125»#« Displays the home directory. That is, the
directory in which the DO script was started.
»gr«~123X~125»#« Displays the column position of the cursor in two
positions, zero filled (e.g. 01, 08, 10).
»gr«~123Y~125»#« Displays the row position of the cursor in two
positions, zero filled (e.g. 01, 08, 24).
»gr«~123script~125»#« The full path name of the script.
.pg clr
Here are some examples of the use of special variables. The
lines are presented showing the variables. To see the
results, press <enter> to execute the line.
| Today's Date and Time: {date} {time}
| {script} was started in {home}
| The cursor is at column {X}, row {Y}
.pg wi full clr ye
RESERVED VARIABLES
»#«
/box 4 1 76 3 14 14 ""
There are also »ye«reserved variables»#« used with various commands. Although
you are not restricted from using these variable names, you should be
careful should you decide to use them in scripts where the related
command will be executed:
»wh«
EDIT »#«Defines the external editor to be used by the »%t«/EDIT»#«
command instead of the built-in editor.
»wh«
LIST »#«Defines the external list program to call in place of
Vernon Buerg's »ce«LIST.COM»#« program when the »%t«/LIST»#« command
is executed.
.pg clr ye
SPECIAL CHARACTERS
»#«
/box 4 1 76 3 14 14 ""
You can enter special characters by entering their three character
ASCII code preceeded by a »wh«tilde»#« ("»ye«~»#«") character:
»+re«~»#«{ascii code}
Let's ring the bell (»cy«press »bo«<enter>»cy« to execute the statement»#«):
|Bell here >~007< using ASCII 07.
/ENDEXEC