TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-234
#LINEFINDRV Built-In Function
result before using it in a subsequent call. This procedure avoids finding the same
string again.
•
Each line break contains an internal end-of-line character that counts as one byte.
•
For variables that contain TACL statements, each square bracket ([,]), vertical bar
(|), or tilde-space combination (~_) uses two bytes, including unprintable
characters that are subject to change from one TACL RVU to another. Other
characters use one byte.
Examples
Assume that var is a variable level containing:
ABCDEFG
HIJKLMNOPQRST
UVWXYZ
and that var2 is a variable level containing:
IJK
1. Either of the invocations:
#LINEFINDRV var 3 "IJK" or #LINEFINDRV var 3 var2
returns 2; the nearest occurrence of IJK beginning in or before line 3 starts in line
2.
2. The invocation:
#LINEFINDRV var 2 "UVW"
returns 0; there are no occurrences of UVW beginning in or before line 2.