同上
解决方案 »
- 考得不错,发个邪恶的小玩意(别找我要分,我快穷死了)
- 关于Application.OnMessage中msg的问题
- 怎么在客户端显示远程服务器的时间啊》用什么函数??拜托,急哦
- 关于fastreport3 script 简单问题!
- 真是伤心,csdn怎么成了书市了!
- 求助:如何实现软件多语言版本比较好???多谢!!
- 我是利用TQuery组件通过设置SQL语言对数据库的数据查询和统计,怎么写?
- 怎样令菜单像Delphi的菜单一样
- 问大家一个关开TChart.LineSeries 的问题
- 请问哪里有"DELPHI 4.0编程技术内幕"下载??
- SELECT后怎么取其中一个字段的值!
- 三层分发后客户端找不到服务器
var MS:TMemoryStream;
begin
if suiEdit12.Text='' then application.MessageBox('请输入要添加的图形代码!','提示',64)
else if suiComboBox3.Text='' then application.MessageBox('请选择图形类型!','提示',64)
else if OpenPictureDialog1.FileName='' then application.MessageBox('请选择需要添加的图形!','提示',64)
else begin
try
MS:=TMemoryStream.Create;
Image3.Picture.Bitmap.SaveToStream(MS);
MS.Position:=0;
with Code_DM.ClientDataSet1 do begin
Close;
ProviderName:='DataSetProvider2';
Open;
Append;
FieldValues['ID']:=suiEdit12.Text;
TBlobField(FieldByName('PICTURE')).LoadFromStream(MS);
FieldValues['KIND']:=KindIDList[suiComboBox3.Items.IndexOf(suiComboBox3.Text)];
FieldValues['ReMark']:=RichEdit1.Text;
ApplyUpdates(-1);
if Application.MessageBox('添加成功!','提示',MB_OK)=IDOK then begin
suiEdit12.Text:='';
suiComboBox3.Text:='';
RichEdit1.Text:='';
OpenPictureDialog1.FileName:='';
image3.Picture.Bitmap:=Nil;
Close;
ProviderName:='DataSetProvider1';
Open;
suiListView1.Clear;
Code_DM.Apps.Get_Map_Info;
MapThread:=Get_Map_thread.Create(true); //创建获取平面图信息线程
MapThread.Resume;//唤醒获取平面图信息线程
end;//end if
end;//end with
except
Application.MessageBox('该图形代码已存在!','提示',MB_OK);
end;//end try
end;//end else
end;