Lazarus中文社区

 找回密码
 立即注册(注册审核可向QQ群索取)

QQ登录

只需一步,快速开始

版权申明
查看: 2593|回复: 4

lazarus 的组件tdbf 如何连dbase数据库

[复制链接]
  • TA的每日心情
    开心
    2017-3-1 22:40
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    发表于 2014-10-20 22:04:48 | 显示全部楼层 |阅读模式
    单位一系统是dbase数据库的,我用tdbf组件连,中文出来都是乱码,想从网上抄一段来转码,结果提示:
    unit1.pas(33,29) Error: method identifier expected
    unit1.pas(33,29) Fatal: Syntax error, ";" expected but "." found

    {$R *.lfm}
    procedure TForm1.TCustomGrid.DrawCellText(aCol,aRow:Integer;aRect:TRect;aState:TGridDrawState;aText:String);
        begin
         with ARect do begin
           dec(Right,3);
           case Canvas.TextStyle.Alignment of
            Classes.taLeftJutify:Inc(Left,3);
            Classes.taRightJusiyec(Right,1);
           end;
           case Canvas.TextStyle.Layout of
           tlTop:Inc(Top,3);
           tlBottomec(Bottom,3);
          end;
          if Right<Left then
           Right:=Left;
          if Left>Right then
           Left:=Right;
          if Bottom<Top then
           Bottom:=Top;
          if Top>Bottom then
           Top:=Bottom;
          if self.ConverTye=1 then
           aText:=ansitoutf8(aText);
          if (Left<>Right) and (Top<>Bottom) then
            Canvas.TextRect(aRect,Left,Top,aText);
          end;
         end;
    end.         

    大家帮分析是哪里的错?                                       

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册(注册审核可向QQ群索取)

    x
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    2018-5-17 09:29
  • 签到天数: 5 天

    [LV.2]偶尔看看I

    发表于 2020-9-1 22:00:16 | 显示全部楼层

    RE: lazarus 的组件tdbf 如何连dbase数据库

    unit1.pas(33,29) Error: method identifier expected
    unit1.pas(33,29) Fatal: Syntax error, ";" expected but "." found //应该在end. 前少end;
    回复 支持 反对

    使用道具 举报

    *滑块验证:

    本版积分规则

    QQ|手机版|小黑屋|Lazarus中国|Lazarus中文社区 ( 鄂ICP备16006501号-1 )

    GMT+8, 2025-5-2 10:10 , Processed in 0.028927 second(s), 13 queries , Redis On.

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表