[View Borland Home Page][View Product List][Search This Web Site][View Available Downloads][Join Borland Online][Enter Discussion Area][Send Email To Webmaster]

BDE API Examples (DbiEmptyTable)

Deletes all records from the table associated with the specified table cursor handle or table name.

Empty a table

This exampe uses the following input: EmptyTable(Table1);
procedure EmptyTable(Table: TTable);
begin
  if Table.Active = FALSE then
    raise EDatabaseError.Create('Table must be opened to empty');
  if Table.Exclusive = FALSE then
    raise EDatabaseError.Create('Table must be opened exclusively to empty');
  Check(DbiEmptyTable(Table.DBHandle, Table.Handle, nil, nil));
end;

Back to BDE API Reference Page


DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.
Trademarks & Copyright © 1998 Borland International, Inc.