TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-62
#CHARGET Built-In Function
•
Each logical line contains an end-of-line character that counts as one byte. For
variables that contain TACL statements, each metacharacter uses the number of
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. Either of the invocations:
#CHARGET var 2 TO 4 or #CHARGET var 2 FOR 3
returns:
BCD
2. The invocation:
#CHARGET var 3 FOR 10
returns:
CDEFG
HIJK
and therefore the function invocation producing that result must be enclosed in
square brackets:
[#OUTPUT [#CHARGET var 3 FOR 10]]