我想在程序里用代码创建本地的 dbf文件用来暂时保存一些数据,delphi里怎么
用代码创建一个 dbf 文件? 要求创建出来的dbf文件能用ADO来操作! 希望高手指点
用代码创建一个 dbf 文件? 要求创建出来的dbf文件能用ADO来操作! 希望高手指点
解决方案 »
- 关于ICS中THTTPCli的Relocation的处理错误问题
- //客观评价themeengine控件和VCLSkin控件!
- 类似ACDSee的图片缩放?
- delphi 7 菜单与图标问题?
- 刚刚入门,简单的SQL查询问题,帮我啊!
- 800里加急(mscomm串口通信!)
- SQL中的Image类型的字段对应到TTable的DateType是什么类型呢;
- 请问各位,哪有英语听力mp3下载?(送分)
- !!!!如何利用字符串传递 Rtf 格式的文件!!!*******(重点问题,急切急切)
- 请问按了DBGrid的column可以排序吗? 不用order by
- 有这样一个字定义函数,我应该如何调用?请指教!
- 问个简单问题!
Active := False;
DatabaseName := 'DBDEMOS';
TableType := ttParadox;
TableName := 'CustInfo';
if not Table1.Exists then begin
{ The Table component must not be active }
{ First, describe the type of table and give }
{ it a name }
{ Next, describe the fields in the table }
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;
{ Next, describe any indexes }
with IndexDefs do begin
Clear;
{ The 1st index has no name because it is
{ a Paradox primary key }
with AddIndexDef do begin
Name := '';
Fields := 'Field1';
Options := [ixPrimary];
end;
with AddIndexDef do begin Name := 'Fld2Indx';
Fields := 'Field2';
Options := [ixCaseInsensitive];
end;
end;
{ Call the CreateTable method to create the table }
CreateTable;
end;
end;