Guardian Procedure Calls Reference Manual

NUMBEREDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Example
Related Programming Manual
Summary
The NUMBEREDIT procedure renumbers the lines of an EDIT file that are in a specified range. You
can specify the new starting number and increment for the range of lines to be renumbered.
NUMBEREDIT is an IOEdit procedure and can only be used with files that have been opened by
OPENEDIT or OPENEDIT_.
Syntax for C Programmers
#include <cextdecs(NUMBEREDIT)>
short NUMBEREDIT ( short filenum
,__int32_t first
,__int32_t last
,[ __int32_t start ]
,[ __int32_t increment ] );
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the typedef
__int32_t, which for TNS and TNS/R compiles is defined as long and for TNS/E compiles
is defined as int.
Syntax for TAL Programmers
error := NUMBEREDIT ( filenum ! i
,first ! i
,last ! i
,[ start ] ! i
,[ increment ] ); ! i
Parameters
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.
NUMBEREDIT Procedure 881