![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||
BDE API Examples (DbiEmptyTable)Deletes all records from the table associated with the specified table cursor handle or table name.
Empty a tableThis 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;
| ||
|
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. | ||