<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods > Recall |
Declaration
procedure Recall;
Description
Recalls a record that has been logically deleted. If the current record has been logically deleted with ApolloDelete, it may be recalled using this function.
Note that if SetDeleted is True, deleted records are only visible to the Go method. All other record movement functions ignore deleted records when SetDeleted is True.
Once a file has been packed or zapped, recalls are no longer possible.
Delphi Example
// Toggle Deletion flag & Button Caption
with Apollo do
begin
if Deleted Then
begin
ButtonDelete.Caption := 'Delete';
Recall;
end
else
begin
ButtonDelete.Caption = 'Recall';
Delete;
end;
end;
C++Builder Example
// Toggle Deletion flag & Button Caption
if (ApTbl->Deleted())
{
ButtonDelete->Caption = "Delete";
ApTbl->Recall();
}
else
{
ButtonDelete->Caption = "Recall";
ApTbl->Delete();
}
See Also