XBase.Delete

Syntax:

Delete()

Description:

Sets a "deleted" flag on the current record. The database record will not be permanently not deleted and can be restored later. The Pack and Zap methods are used to completely delete records from database tables and free disk space.

Availability:

Thin client, server, thick client, external connection.

Example:

// Deleting all records:
xB = New xBase;
xB.OpenFile("c:\test\test.dbf", "c:\test\test.cdx");
xB.First();
While 
Not xB.EOF() Do
    xB.Delete();
    xB.Next();
EndDo
;


    

1C:Enterprise Developer's Community