Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (N)
Guardian Procedure Calls Reference Manual—522629-013
10-54
NUMBEREDIT Procedure
-6 Exhausted valid line numbers.
-10 Unable to complete renumbering; file is unchanged.
filenum input
INT:value
is the number that identifies the open file in which lines are to be renumbered.
first input
INT(32):value
specifies 1000 times the line number of the first line in the range of lines to be
renumbered. If a negative value is specified, the line number of the first line in the
file is used.
last input
INT(32):value
specifies 1000 times the line number of the last line in the range of lines to be
renumbered. If a negative value is specified, the line number of the last line in the
file is used.
start input
INT(32):value
specifies 1000 times the line number to be assigned to the first renumbered line. If
this parameter is omitted, the old line number is retained for the first renumbered
line unless
first is a negative value, in which case 1000 is used for start.
increment input
INT(32):value
specifies 1000 times the value to be added to each successive line number when
renumbering lines. If this parameter is omitted, 1000 is used unless the value
represented by
start has a fractional part (that is, if start, when divided by
1000, contains a value to the right of the decimal point); in that case, the value
used is the largest power of 10 that does not exceed the value of the fractional
part. If
last is a negative value, 1000 is used for increment.
Example
In the following example, NUMBEREDIT renumbers lines 50 through 100 in the
specified file. After the call, these same lines will be numbered starting at 49 with
successive line numbers increasing by an increment of 0.100.
INT(32) first := 50000D;
INT(32) last := 100000D;
INT(32) start := 49000D;