Delete

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

Delete

Declaration

procedure Delete;

Description

Flags the current record for deletion. If SetDeleted has been set to True, the record will become invisible to record movement functions. Record is not actually purged from the table until a Pack is issued. Until then, the record can be undeleted by calling Recall.

 

image\tip.gif When SpeedMode is TRUE, use the ApolloDelete method instead.

Delphi Example

// Deleted all non-deleted records, and

// recalls all previously deleted ones

with ApTbl do

 begin

 GoTop; 

 while not ApolloEof do 

 begin 

         if Deleted then 

                 Recall 

         else 

                 Delete;

         Skip( 1 ); 

 end; 

end;

C++Builder Example

// Deleted all non-deleted records, and

// recalls all previously deleted ones

ApTbl->GoTop();

while (!ApolloEof)

{

 if (Deleted) 

         ApTbl->Recall; 

 else 

         ApTbl->Delete;

 ApTbl->Skip( 1 ); 

}

See Also

ApolloDelete, Deleted, Pack Recall, SetDeleted, Zap