Delphi Examples: DbiCopyTable

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi Examples: DbiCopyTable

Return to chapter overview

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;