|
procedure TMainForm.FileSaveAs(Sender: TObject);
begin
if SaveDialog.Execute then
begin
if FileExists(SaveDialog.FileName) then
if MessageDlg(Format(sOverWrite, [SaveDialog.FileName]),
mtConfirmation, mbYesNoCancel, 0) <> idYes then Exit;
Editor.Lines.SaveToFile(SaveDialog.FileName);
SetFileName(SaveDialog.FileName);
end;
end;
uses
Business.System, Business.Model, Business.Forms, Business.Data,
Business.Model.org, GGCTK, CommonFunctionLib;
好像不够用。提示不能识别。。。
请指教~ :1eye: |
|