我也遇到过这个问题,只不过我是用ADO+Access,这是zhang21cnboy(沧桑男人)给我的回复,现转给你,我还没试,不过应该得,你要谢就谢他吧!{使用内存流解决或者Assign!备注字段是BLOB字段的一种,必须使用流式处理!
我通常这么做的,比如说你的数据集已经打开了!
aQuery.Edit;
aQuery.Insert;
aQuerytext.Assign(Memo1.Lines);
aQuery.Post;
或者可以这么做
var
TextStream:TMemoryStream;
begin
TextStream:=TMemoryStream.Create;
Memo1.Lines.SaveToStream(TextStream);
TextStream.Position:=0;
Try
aQuery.Edit;
aQuery.Insert;
aQueryText.LoadFromStream(TextStream);
aQuery.Post;
Finally
TextStream.Free;
End;
end;
先对aQuery进行字段编辑!}
chenjiong(准程序员:升级中....) :
'Insert Into User(Text) Value(Memo1.Text)'
我是出学Delphi,以后多指教一下哦!my e-mail:[email protected]
我通常这么做的,比如说你的数据集已经打开了!
aQuery.Edit;
aQuery.Insert;
aQuerytext.Assign(Memo1.Lines);
aQuery.Post;
或者可以这么做
var
TextStream:TMemoryStream;
begin
TextStream:=TMemoryStream.Create;
Memo1.Lines.SaveToStream(TextStream);
TextStream.Position:=0;
Try
aQuery.Edit;
aQuery.Insert;
aQueryText.LoadFromStream(TextStream);
aQuery.Post;
Finally
TextStream.Free;
End;
end;
先对aQuery进行字段编辑!}
chenjiong(准程序员:升级中....) :
'Insert Into User(Text) Value(Memo1.Text)'
我是出学Delphi,以后多指教一下哦!my e-mail:[email protected]
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货