Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (G)
Guardian Procedure Calls Reference Manual—522629-013
6-17
GETPOSITIONEDIT Procedure
GETPOSITIONEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Related Programming Manual
Summary
The GETPOSITIONEDIT procedure returns the record number (1000 times the EDIT
line number) of the line in the specified file most recently read or written (that is, it
returns the current record number).
GETPOSITIONEDIT is an IOEdit procedure and can only be used with files that have
been opened by OPENEDIT or OPENEDIT_.
Syntax for C Programmers
•
CEXTDECS (via 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
Parameters
position returned value
INT(32)
returns the current record number (1000 times the EDIT line number) of the
specified file. It returns -1 if the file is not open or if the file is positioned at its
beginning. It returns -2 if the last operation was a read end-of-file.
filenum input
INT:value
specifies the file number of the open file of interest.
#include <cextdecs(GETPOSITIONEDIT)>
__int32_t GETPOSITIONEDIT ( short filenum );
position := GETPOSITIONEDIT ( filenum ); ! i