X
xiaowan
Unregistered / Unconfirmed
GUEST, unregistred user!
我用Dbimage控件来修改数据库中的图片,但是每次点击‘输入’按扭后出现如下提示:
"Record alrealy locked this session"
我的输入代码如下:
var Myjpg:Tjpegimage;
begin
datamodule1.ZhiliaoQuery.edit;
Myjpg:=Tjpegimage.Create;
if openpicturedialog1.Execute then
begin
if ExtractFileExt( openpicturedialog1.filename)='.bmp'then
begin
Dbimage1.Picture.LoadFromFile(openpicturedialog1.filename);
Myjpg.Assign(Dbimage1.picture.Bitmap);
end;
if extractfileExt(openpicturedialog1.filename)='.jpg' then
Dbimage1.Picture.LoadFromFile(openpicturedialog1.filename);
end;
Dbimage1.Refresh;
Myjpg.Free;
end;
请高手们指点。谢谢!
"Record alrealy locked this session"
我的输入代码如下:
var Myjpg:Tjpegimage;
begin
datamodule1.ZhiliaoQuery.edit;
Myjpg:=Tjpegimage.Create;
if openpicturedialog1.Execute then
begin
if ExtractFileExt( openpicturedialog1.filename)='.bmp'then
begin
Dbimage1.Picture.LoadFromFile(openpicturedialog1.filename);
Myjpg.Assign(Dbimage1.picture.Bitmap);
end;
if extractfileExt(openpicturedialog1.filename)='.jpg' then
Dbimage1.Picture.LoadFromFile(openpicturedialog1.filename);
end;
Dbimage1.Refresh;
Myjpg.Free;
end;
请高手们指点。谢谢!