TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-119
#DELTA Built-In Function
Variable Control Commands
Commands in #DELTA macros can push, pop, set, and manipulate variables. All these
commands (except the ^\command) must be immediately followed by a variable name;
the variable name must be terminated by a dollar sign ($). Table 9-7 summarizes the
syntax and effects of these commands. Full descriptions follow Table 9-9 on
page 9-121.
\ Converts number in
text to value in X
-X = (P)
x\ Puts x in text Text value of x
inserted at P
P = P + size
* You can modify the I, S, and :T commands with the @ flag to change the text delimiter from $ to another
character; for example: @I/text/
Table 9-7. Variable Control Commands (page 1 of 2)
Command Description Effect On Buffer
Effect on X, Y, and
Pointer (P)
FEvar$ Tests variable level
for emptiness
- X = -1 if empty, 0 if not
FFvar$ Gets frame number of
variable level
- X=frame number
xFGvar$ Compares lines to
variable level
- If successful, X = -1; if not,
X = 0
y,xFGvar$ Compares range to
variable level
- If successful, X = -1; if not,
X = 0
FOvar$Pops variable - -
FTvar$ Gets var type - X=variable type
xFTvar$ Sets var type - -
FUvar$ Pushes variable - -
xFUvar$ Pushes and loads
variable with x
--
Gvar$ Gets text from
variable level
Definition text put at
P
P = P + size
Mvar$ Invokes macro - -
Qvar$ Gets value from
variable level
-X = var
xUvar$ Unloads x into
variable level
--
Table 9-6. Text Manipulation Commands (page3of3)
Command Description Effect on Buffer Effect on X, Y, and Pointer (P)