当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·关于fso文件炒作    »显示摘要«
    摘要: (1)我想检查c:\dir\目录是否存在,存在则不做炒作,不存在就建立 (2)我想检查c:\dir\目录是否存在“10000.txt"文件,存在则不做炒作,不存在就建立 (3)我想对1000.txt文件进行读和append写操作,具体应该如何做? ......
    摘要: 原来有两个表: employee_basic(员工基本情况表) yg(员工表) 两个表中都有emp_no字段(全为主键) 现在我想知道如何将emplyee_basic 表中的新增加内容加到yg表中。 将employee_basic中emp_no增加到yg表中。 谢谢!!! ......


100求一个在ACCESS中存入和读出JPG图片的DEMO[D6源码]

最高只能给100分,否则给1000分也没问题  
  我的信箱是sfply@sfply.net  
  我想在ACCESS数据库中处理存储,但没有找到过相关资料,请大家帮一个忙!谢谢!

NO.1   作者: lincanwen

var   image:string;  
  image:=opendialog1.filename;  
  with   Query1   do  
  begin  
      Close;  
      Sql.Clear;  
      Sql.Add(insert   into   tablename   (field1,   field2,   tp)   values(:field1,   :field2,   :tp));  
      ....  
      ....  
      Parameters.ParamByName(tp).LoadFromFile(image,ftGraphic);  
      ExecSQL:  
  end;  
 

NO.2   作者: cg1120

请用以下代码:  
  var  
      picturename,extname:string;  
      Jpegimage:TJpegImage;  
  begin  
      with   Qorder_master   do   begin  
          if   isempty   then   exit;  
          if   openpicture.Execute   then begin  
          picturename:=openpicture.FileName;  
          extname:=extractfileext(picturename);  
          if   uppercase(extname)=.BMP   then  
          begin  
            edit;  
            dbimage.Picture.LoadFromFile(openpicture.filename);  
            Post;  
            end;  
            if   (uppercase(extname)=.JPG)   OR   (uppercase(extname)=.JEPG)   then  
  begin  
      Jpegimage:=Tjpegimage.Create;  
        try  
        Jpegimage.LoadFromFile(picturename);  
    edit;  
          dbimage.Picture.Graphic.Assign(Jpegimage);  
    Post;  
  finally  
      jpegimage.Free;  
  end;  
                  end;  
              end;  
          Edit   ;  
      end;  
  end;


    摘要: 和我联系wy_ly@263.net ......
» 本期热门文章:
· 热门栏目:
» 相关精选文章
» 其它相关:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE