|
<< Click to Display Table of Contents >> Delphi Examples: DbiCopyTable |
![]() ![]()
|
Copy a source table into a destination table.
If the destination table exists, it is overwritten.If the tables are Paradox, dBASE, FoxPro, or Access, you must supply a file extension. This example uses the following input:
fDbiCopyTable(Table1.dbhandle, 'CUSTOMER.DB', 'CUSTOMER2.DB');
procedure fDbiCopyTable(hTmpDb: hDbiDb; SrcTableName: String; DestName: String);
begin
Check(DbiCopyTable(hTmpDb, True, PChar(SrcTableName), nil, PChar(DestName)));
end;