DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: a12315
今日帖子: 42
在线用户: 12
导航: 论坛 -> 数据库专区 斑竹:liumazi,waterstone  
作者:
男 huo_v_wu (勇敢的螳螂) ★☆☆☆☆ -
盒子活跃会员
2022/6/23 9:10:52
标题:
在D7关于dbf中创建表的字段超过40个的问题 浏览:767
加入我的收藏
楼主: Delph7
我现在需要用程序生成一个dbf的表,但这个表有120个字段,我发现只要到了40个字典,就会报错delphi record size is too big for table table dose not exist
请问下这个问题该如何解决?
function DataExports(NZYH: string; NDataset: tadodataset): Boolean; //雕龙病案首页医保导出
var

  NConStr: string;
  NPath: string;
  NStr: string;
  BaseName: string;
  TableName: string;
  table: Ttable;
begin
  try
    table := TTable.Create(nil);
    table.Close;
    table.Active := false;
    table.Exclusive := true;
    table.TableName := NZYH;
    table.TableType := ttFOXPRO;
    with table.FieldDefs do
    begin
      Clear;
      with AddFieldDef do
      begin
        Name := 'USERID_';
        DataType := ftString;
        Size := 60;
      end;

      with AddFieldDef do
      begin
        Name := 'USERNAME';
        DataType := ftString;
        Size := 60;
      end;
.........
创建的字段超过40个就会报错
----------------------------------------------
-敢于学习,谦虚学习,鼓励批评!!
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行62.5毫秒 RSS