Gasboy CFN III Mgnr's Mnl V3.4 User Manual
Page 215

MDE-4315 CFN Series CFN III Manager’s Manual for Windows NT · August 2004
Page 199
Advanced Command Files
Commands to the Site Controller can be entered from four devices: the
keyboard, a remote computer, the console, and cron files (which are discussed
in the next chapter).
set_var x * %b
Multiplies current contents of %x by %b
set_var x / 10
Divides current contents of %x by 10
set_var x %10
Stores the remainder of %x divided by 10
in %x
set_var x ? filename
Stores the length of the designated file in
%x
set_var x # string
Stores the length of the designated string
in %x
set_var x ^ %y
Stores the exclusive-or of %x and %y in
%x
set_var x = M | Q xx.xx[x]
Stores the entered monetary (if M) or
quantity (if Q) amount (xx.xx[x]) in %x
set_var x @[M | Q] promptstring
Echoes promptstring to command
terminal, and waits for text (if @), a
monetary amount (if @M), or a quantity (if
@Q) to be entered at the terminal. That
text or amount will then be stored in
variable %x
set_var x := %y + 5
Stores the sum of %y + 5 in %x
set_var x ~ [M | Q*] “%y” [col [length]]
Stores in %x the string in %y. The string
will be stored as text unless M or Q is
entered to denote a monetary or quantity
amount If col is specified, the string will
begin col characters from the beginning
of the line. If length is specified, the string
will be length characters long.
set_var x $[M | Q] file [line | S# | Sy [col [length]]]
Stores in %x the specified line of the
designated file. (The $ indicates the
characters to be stored are coming from a
file.)
The line will be stored as text unless M or
Q is entered to denote a monetary or
quantity amount.
If line or S# or Sy is not specified, the first
line of file will be used. The S in S# and
Sy indicates seek. S# is the offset from
the beginning of the file. Sy takes the
offset value currently stored in %y, reads
the string at that offset into %x, then
resets %y to the offset that is the
beginning of the next line in file.
If col is specified, the string will begin col
characters from the beginning of the line.
If length is specified, the string will be
length characters long.
set_var x @M XXXX
Allows a number to be formatted into a
user variable.
SET_VAR Form
Function