DBF ISEOF()

From Recital Documentation Wiki
Jump to: navigation, search

PURPOSE

Is record pointer at end of file.


SYNONYM

api_dbf_iseof()


SYNOPSIS

#include "dbapi.h"
 
int	DBF_ISEOF()
 
<input parameters>
none
 
<output parameters>
none


DESCRIPTION

The DBF_ISEOF() function will return 1 if the record pointer is positioned past the last logical record of the currently selected database. If not, 0 is returned or -1 if there is an error.


EXAMPLE

The following example returns the current position of the record pointer.

#include "dbapi.h"
 
dbapi_dbf_iseof()
{
	if (DBF_ISBOF()) {
		_retc("BOF");
	} else if (DBF_ISEOF()) {
		_retc("EOF");
	} else {
		_retc("INF");
       }
}


SEE ALSO

DBF_FETCH(), DBF_GOTO(), DBF_ISBOF(), DBF_LOCKR(), DBF_RECCOUNT(), DBF_RECNO(), DBF_SEEK(), DBF_SELECT(), DBF_SKIP(), DBF_UNLOCKR()