<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_Bof |
Declare Function sx_Bof Lib "Apollo9.dll" () As Integer
BOOL FAR PASCAL sx_Bof (VOID);
Tests if a skip has been attempted that would place the record pointer before the first record in the file (BOF - beginning of file).
TRUE (non-zero) or FALSE (zero). If sx_Bof returns TRUE, the record buffer will contain the first record in the file.
' skip to the previous record
Sub bPrev_Click ()
sx_Skip -1
If sx_Bof() Then
Beep
sx_GoTop
End If
End Sub
void CNamesForm::OnButtonPrevious()
{
sx_Skip(-1);
if (sx_Bof())
{
AfxMessageBox((LPCSTR) "Hit top.");
sx_GoTop();
}
}