<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Properties > Deleted |
Declaration
property Deleted: WordBool;
Description
Run-time, Read-only. Determines whether or not the current record has been logically deleted. True if the record has been logically deleted, and False if not. Records may be recalled (the logical deletion flag is reset) with Recall.
If SetDeleted is True, deleted records are invisible to all record positioning functions. If you want to test deleted status for a range of records using Skip to traverse the range, ensure that you set SetDeleted False.
Delphi Example
with ApTbl do
begin
if Deleted then
begin
ButtonDelete.Caption := 'Delete';
Recall;
end
else
begin
ButtonDelete.Caption := 'Recall';
Delete;
end;
end;
C++Builder Example
if (ApTbl->Deleted)
{
ButtonDelete->Caption = "Delete";
ApTbl->Recall();
}
else
{
ButtonDelete->Caption = "Recall";
ApTbl->Delete();
}
See Also