DBF ISBOF()

From Lianjapedia
Jump to: navigation, search

PURPOSE

Is record pointer at beginning of file.

SYNONYM

api_dbf_isbof()

SYNOPSIS

#include "lianja_api.h"
 
int	DBF_ISBOF()
 
<input parameters>
none
 
<output parameters>
none

DESCRIPTION

The DBF_ISBOF() function will return 1 if the record pointer is positioned past the first logical record of the currently selected table. 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 "lianja_api.h"
 
lianjaapi_dbf_isbof()
{
	if (DBF_ISBOF()) {
		_retc( "BOF" );
	} else if (DBF_ISEOF()) {
		_retc( "EOF" );
	} else {
		_retc( "INF" );
	}
}

SEE ALSO

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