TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-121
#DELTA Built-In Function
command execution. Table 9-9 summarizes the syntax and effects of these
commands.
The following subsections provide full descriptions of all the #DELTA commands, in
alphabetic sequence.
The A Command
The A command loads the X register with a number that corresponds to the position of
a character in the ASCII character set. The X register value (before execution)
specifies the buffer position, relative to the pointer, of the character to be examined; 0A
refers to the character before the pointer, 1A (or A) to the character after the pointer.
The A command does not change the pointer position. For example:
57> #DELTA ARGH!
#DELTA 58> 4JV
#DELTA 58> EOF!
ARGH(.)!
#DELTA 59> 0A=
#DELTA 59> EOF!
72
#DELTA 60> 1A=
#DELTA 60> EOF!
33
“H” is character number 72 in the ASCII set; exclamation point is character number 33.
Table 9-9. #DELTA Control Commands
Command Description Effect on Buffer
Effect on X, Y, and Pointer
(P)
; Exits iteration - -
? Specifies condition - -
:? Specifies NOT
condition
--
’ Ends condition - -
, Moves X into Y - Y=X; X cleared
$ Clears X, Y - X and Y
segments and
retrieves buffer
position
-X = P
= Displays X or Y,X - -
< Begins iteration - -
x< Iterates x times - -
> Ends iteration - -