TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-125
#DELTA Built-In Function
The FL Command
The FL command loads the X register with the length of the string last inserted by I or
found by S. This is especially useful for doing text replacement where you do not want
to (or cannot) count the length of the search string. For example, you might use the
following in a TACL macro because the length of the first argument of the macro varies
from call to call:
#SET /TYPE DELTA/ cmds ... J <@:S/%1%/; -FL D> ...
#DELTA / COMMANDS cmds /
The iteration searches the buffer for a string that matches an argument of unknown
length; if it finds the string, it sets the X register to the negative (-FL) value of the string
length and deletes that many characters from the buffer. FL is set to zero whenever
#DELTA prompts.
The FO Command
The FO command pops a TACL variable. If you pop the last level of a variable, that
variable is destroyed.
The FT Command
You use the FT command to get or set the type of a variable level. FT must be followed
by the name of a variable level. If the X register is clear, FT returns a value
representing the variable type in the X register.
The values and their types are:
If the X register contains a value between 1 and 6, FT sets the specified variable level
to the type represented by the value.
The FU Command
The FU command pushes a TACL variable. If you push a variable that does not exist,
#DELTA creates it. If there is a value in the X register when you use the push
command, the new level of the variable contains that value.
Value Type
1 MACRO
2ROUTINE
3 TEXT
4DELTA
5ALIAS
6DIRECTORY
7 STRUCT