sx_Bof

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_Bof

VB Declaration

Declare Function sx_Bof Lib "Apollo9.dll" () As Integer

C Declaration

BOOL FAR PASCAL sx_Bof (VOID);

Description

Tests if a skip has been attempted that would place the record pointer before the first record in the file (BOF - beginning of file).

Return Value

TRUE (non-zero) or FALSE (zero). If sx_Bof returns TRUE, the record buffer will contain the first record in the file.

VB Example

' skip to the previous record

Sub bPrev_Click ()

sx_Skip -1

If sx_Bof() Then

Beep

sx_GoTop

End If

End Sub

C Example

void CNamesForm::OnButtonPrevious()

{

sx_Skip(-1);

if (sx_Bof())

{

AfxMessageBox((LPCSTR) "Hit top.");

sx_GoTop();

}

}

See Also

sx_Eof, sx_GoTop, sx_Skip