标题:几个函数不明白
取消只看楼主
baoxuelan
Rank: 1
等 级:新手上路
帖 子:39
专家分:0
注 册:2006-1-17
 问题点数:0 回复次数:0 
几个函数不明白

procedure TForm1.Button1Click(Sender: TObject);
var
picture2:tpicture;
begin
if openpicturedialog2.FileName='' then
begin
showmessage('请选择照片');
exit;
end;
if snedit1.Text='' then
begin
showmessage('请输入用户名!');
exit;
end;
picture2:=tpicture.create;
picture2.LoadFromFile(extractfilename(openpicturedialog2.FileName));
adoquery2.Close;
adoquery2.SQL.Clear;
adoquery2.SQL.Add('select*from base_data');
adoquery2.Open;
adoquery2.Insert;
adoquery2.FieldByName('worker_id').AsString:=snedit1.Text;
adoquery2.FieldByName('photo').Assign(picture2);
adoquery2.Post;
showmessage('图片已保存完毕');
end;
我对以上几个函数不太清楚!
1、extractfilename?
2、Assign?
3、post?
谢!

搜索更多相关主题的帖子: 函数 
2006-05-31 23:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-68919-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.457775 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved