1.
if not Table1.Exists then begin
with Table1 do begin
Active := False;
TableType := ttDBASE;
TableName := '2000'+'01';
with FieldDefs do begin
Clear;
with AddFieldDef do begin
Name := 'Field1';
DataType := ftInteger;
Required := True;
end;
with AddFieldDef do begin
Name := 'Field2';
DataType := ftString;
Size := 30;
end;
end;
CreateTable;
ACTIVE:=TRUE;
end;
end;
已测试...
2.
COPYFILE(PCHAR('200001.DBF'),PCHAR('A:/200001.DBF'),FALSE);
这是最简单的了,如果数据量大,你还要考虑压缩和分盘...
用支持份盘压缩的第三方控件...