TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-236
#LINEFINDV Built-In Function
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:
#LINEFINDV var 1 "IJK" or #LINEFINDV var 1 var2
returns 2; the first occurrence of IJK starting in or after line 1 is in line 2.
2. Either of the invocations:
#LINEFINDV var 2 "IJK" or #LINEFINDV var 2 var2
returns 2; the first occurrence of IJK is exactly at the starting point, the beginning of
line 2.
3. Either of the invocations:
#LINEFINDV var 3 "IJK" or #LINEFINDV var 3 var2
returns 0; there are no occurrences of IJK starting in or after line 3.
4. The invocation:
#LINEFINDV var 1 "FOO"
returns 0; there are no occurrences of FOO anywhere in var.