TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-238
#LINEGET Built-In Function
Examples
Assume that var is a variable level containing:
THE QUICK BROWN
FOX JUMPED OVER
THE LAZY DOG
TWICE A DAY
EXCEPT TUESDAYS.
1. The invocation:
#LINEGET var 2
returns:
FOX JUMPED OVER
2. Either of the invocations:
#LINEGET var 2 TO 4 or #LINEGET var 2 FOR 3
returns:
FOX JUMPED OVER
THE LAZY DOG
TWICE A DAY
Therefore, a function invocation producing that result must be enclosed in square
brackets:
[#OUTPUT [#LINEGET var 2 FOR 3]]