Guardian Procedure Calls Reference Manual
DELETEEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Example
Related Programming Manual
Summary
The DELETEEDIT procedure deletes from an EDIT file all lines that have line numbers in a specified
range. Upon completion, the current record number is set to the highest line number in the file that
is lower than the deleted range, or to -1 if there is no such line.
DELETEEDIT is an IOEdit procedure and can be used only with files that have been opened by
OPENEDIT or OPENEDIT_.
Syntax for C Programmers
#include <cextdecs(DELETEEDIT)>
short DELETEEDIT ( short filenum
,__int32_t first
,__int32_t last );
• 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 := DELETEEDIT ( filenum ! i
,first ! i
,last ); ! i
Parameters
filenum
input
INT:value
is the number that identifies the open file from which lines are to be deleted.
first
input
INT(32):value
specifies 1000 times the line number of the first line in the range of lines to be deleted. If a
negative value is specified, the line number of the first line in the file is used.
298 Guardian Procedure Calls (D-E)