158
if dbIm<>nil then dbIM.Picture.SaveToFile(dlgSaveImage.FileName);
except
ShowMessage('Ошибка записи в файл:'+#13#10+dlgSaveImage.FileName);
end;
end;
procedure TfmMain.mcClearClick(Sender: TObject);
var dbIM:TDBImage;nmField:string;
begin
dbIm:=nil;
With MenuClip do
if PopupComponent is TDBImage then dbIM:=(PopupComponent as TDBImage);
if dbIm<>nil then begin
nmField:=dbIM.DataField;
if dbIM.DataSource.State <> dsEdit then dbIM.DataSource.Edit;
Достарыңызбен бөлісу: