Guardian Procedure Calls Reference Manual

INCREMENTEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Example
Related Programming Manual
Summary
The INCREMENTEDIT procedure sets the increment to be added to successive line numbers for
lines that will be added to an EDIT file without explicitly specified line numbers. Each time a file
is opened by OPENEDIT or OPENEDIT_, the increment is reset to 1 (which would be specified in
this procedure as 1000).
INCREMENTEDIT 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(INCREMENTEDIT)>
short INCREMENTEDIT ( short filenum
,[ __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
CALL INCREMENTEDIT ( filenum ! i
,[ increment ] ); ! i
Parameters
filenum
input
INT:value
specifies the file number of the open file for which the line number increment is to be set.
increment
input
INT(32):value
specifies the increment to be added to successive line numbers for lines that will be added to
the file without explicitly specified line numbers. The value must be specified as 1000 times
the line number increment value. If this parameter is omitted, the value 1000 is used. The
possible EDIT line numbers are 0, 0.001, 0.002, ... 99999.999.
INCREMENTEDIT Procedure 721