TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-54
#CHARFIND Built-In Function
visible characters plus one, including unprintable characters that are subject to
change from one TACL RVU to another. Nonmetacharacters use one byte.
Examples
Assume that var is a variable level containing:
ABCDEFG
HIJKLMNOPQRST
UVWXYZ
1. The invocation:
#CHARFIND var 1 IJK
returns 10; the first occurrence of IJK starting at or after 1 is at character address
10.
2. The invocation:
#CHARFIND var 10 IJK
returns 10; the first occurrence of IJK is exactly at the starting character address,
10.
3. The invocation:
#CHARFIND var 11 IJK
returns 0; there are no occurrences of IJK starting at or after character address 11.
4. The invocation:
#CHARFIND var 1 FOO
returns 0; there are no occurrences of FOO anywhere in var.