TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-227
#LINEDEL Built-In Function
#LINEDEL Built-In Function
Use #LINEDEL to delete lines from a variable level, starting at a specified line.
variable-level
is an existing variable level from which lines are to be deleted. It must not be in a
shared segment, and must not be a DIRECTORY, a STRUCT, or a STRUCT item.
line-addr-1
is an integer or a variable level that contains an integer. line-addr-1 specifies
the line number at which line deletion is to begin. The line address must be in the
range from 1 to max-int, inclusive.
line-count
is an integer or a variable level that contains an integer. line-count specifies the
number of lines to be deleted. The line count must be in the range from 0 to max-
int, inclusive.
line-addr-2
is an integer or a variable level that contains an integer. line-addr-2 specifies
the line number at which line deletion is to end. The line address must be in the
range from 0 to max-int, inclusive.
Result
#LINEDEL returns nothing.
Considerations
•
If you use TO, the line specified by line-addr-2 is included in the deletion: That
is, “x TO y” is equivalent to “x FOR (y-x)+1.”
•
If you use TO and line-addr-1 is greater than line-addr-2, no deletion
occurs.
•
If you omit both FOR and TO, TACL deletes the line specified by line-addr-1.
Examples
Any part of the specified deletion that lies beyond the end of the variable level is
ignored.
#LINEDEL variable-level line-addr-1
[ [ FOR line-count ] | TO line-addr-2 ] ]