<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_Recall |
Declare Sub sx_Recall Lib "Apollo9.dll" ()
VOID FAR PASCAL sx_Recall (VOID);
Recalls a record that has been logically deleted. If the current record has been logically deleted with sx_Delete, it may be recalled using this function.
Note that if sx_SetDeleted is True, deleted records are only visible to the sx_Go function. All other record movement functions ignore deleted records when sx_SetDeleted is True.
Once a file has been packed or zapped, recalls are no longer possible.
' Toggle deletion flag
Sub ButtonDelete_Click ()
If sx_Deleted() Then
ButtonDelete.Caption = "Delete"
sx_Recall
DeleStat.Value = -sx_Deleted()
Else
ButtonDelete.Caption = "Recall"
sx_Delete
DeleStat.Value = -sx_Deleted()
End If
End Sub
void CNamesForm::OnButtonDelete()
{
if (sx_Deleted())
{
m_delete->SetStrProperty("Caption", "Delete");
sx_Recall();
}
else
{
m_delete->SetStrProperty("Caption", "Recall");
sx_Delete();
}
}