SaveAs for TAdvMemo + TAdvMemoSource

Hi, I have a problem: How to save the text, changed in AdvMemo under a new name (Save As):
Here are the components used:
- TAdvMemo
- TAdvMemoSource (More)
- TAdvMemoEditToolBar (with Save As)
I don't know how to save the currently changed text from AdvMemo (Save As).
If TAdvMemoSource is connected to AdvMemo, then the AdvMemo is essentially empty.
When you try to save the text, only an new EMPTY file is created.
Please, how can this be solved?

Regards, Miro

Did you try

 AdvMemoSource1.Lines.SaveToFile();

If I use TAdvMemoEditToolBar, then I can't use your suggestion.


Probably in  unit AdvMemoActions.pas
and
function TAdvMemoFileSaveAction.DoSaveFileAs(FMemo: TAdvMemo): boolean;
FMemo.Lines.SaveToFile(AFileName)
Instead of
FMemo.MemoSource.Lines.SaveToFile(AFileName);

can be set this text:
If Assigned( FMemo.MemoSource ) then
FMemo.MemoSource.Lines.SaveToFile(AFileName);
else
FMemo.Lines.SaveToFile(AFileName);

Sorry, the text in my previous post should be:


In  existing unit AdvMemoActions.pas
and
function TAdvMemoFileSaveAction.DoSaveFileAs(FMemo: TAdvMemo): boolean;

Instead of
FMemo.Lines.SaveToFile(AFileName)

can be placed/added this text:
If Assigned( FMemo.MemoSource ) then
FMemo.MemoSource.Lines.SaveToFile(AFileName)
else
FMemo.Lines.SaveToFile(AFileName);

Sorry, it is was initially not clear this was in connection with the TAdvMemoFileSaveAction.

You're correct about this particular case and we have applied this improvement.
This will be included in the next release.

Fine, I'm glad

Miro