TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-232
#LINEFINDR Built-In Function
Examples
Assume that var is a variable level containing:
ABCDEFG
HIJKLMNOPQRST
UVWXYZ
1. The invocation:
#LINEFINDR var 3 IJK
returns 2; the nearest occurrence of IJK beginning in or before line 3 is in line 2.
2. The invocation:
[#LINEFINDR var 2 T
UV]
returns 2; though the text T(end-of-line)UV carries over to line 3, it begins in line 2.
3. The invocation:
#LINEFINDR var 4 FOO
returns 0; there are no occurrences of FOO anywhere in var.