TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-124
#DELTA Built-In Function
The FC Command
The FC command changes the case of text within a specified range. You can specify
the range of text either with an X register value (X lines of text, starting at the current
pointer position), or with X and Y register values (from character Y to character X). If
you use the @ flag with the FC command, the text in the range is changed to
uppercase; if you do not use the @ flag, the text is changed to lowercase.
If FC appears at the beginning of an interactive command line, it is the standard FC
(Fix Command) command.
The FE Command
The FE examines a variable level to see if it is empty. If the variable level contains
nothing, FE loads -1 into the X register; if the variable level contains anything, FE loads
0 into the X register. FE considers a variable level to be empty only if it does not
contain anything, even a space or an end-of-line.
The FF Command
The FF command loads the X register with the frame number associated with a
specified variable level. The FF command must be followed by a variable level name.
The variable level name must be terminated by a dollar sign.
The FG Command
The FG command compares a variable level with a specified range of text. You can
specify the range of text either with an X register value or with X and Y register values.
The comparison is not case-sensitive. If the comparison succeeds, FG loads -1 into the
X register; if the comparison fails, it loads 0 into the X register.
The comparison succeeds only if all characters in the variable level agree with the
buffer text. In this example, the comparison fails because DIGITS contains 10
characters (the 8 digits assigned plus a two-byte end-of-line character) and only 9
characters in the buffer are compared with it:
70> #PUSH digits
71> #SET digits 12345678
72> #DELTA
#DELTA 73> Gdigits$ BJ .,.+8FGdigits$ =
#DELTA 73> EOF!
0,0
If you had used this command instead:
#DELTA 73> Gdigits$ BJ HFGdigits$
the comparison would have succeeded because the entire contents of DIGITS were in
the buffer (the end-of-line character is represented by a null character).