Problem when saving to DB
procedure TdmScripter.IDEEngine1ConfirmSaveFile (Sender: TObject; IDEFileType: TIDEFileType;
AFileName: string; AFile: TIDEProjectFile; var Action: TIDEConfirmSaveType; var Handled: Boolean);
begin
Action: = cstSave;
Handled: = true;
end;
procedure TdmScripter.IDEEngine1SaveFile (Sender: TObject;
IDEFileType: TIDEFileType; AFileName, AContent: String;
AFile: TIDEProjectFile; var Handled: Boolean);
var q: TOraQuery;
fileName: string;
begin
q: = TOraQuery.Create (dmScripter);
...
Handled: = True;
end;
I launch IDEDialog1.Execute;
A new project with two units is being created.
Unit1 and unit2 with the form.
If you edit only unit2 and close the script editor, only unit2 (which was edited) is saved and the project becomes non-working.