W
W
White_Bambie2019-04-26 11:44:42
Delphi
White_Bambie, 2019-04-26 11:44:42

How to copy the contents of one Memo to another?

A report is generated in fastreport (ver 6). There is a component on the generated report page Memo1. This Memo1one is filled with data that is passed to the report from the Delphi application form.
The report also has a DialogPage, which also has a Memo2button.
Task:
It is necessary that after double clicking on Memo1 of the report, a DialogPage appears, data from Memo1 is copied to Memo2.
After editing the text, on pressing the button, the text from Memo2 replaced the text in Memo1.
That is, I want to make such a text editor in FastReport.
Remark: of course, you will say that you can specify in the report properties the ability to edit the contents of the generated report (by pressing Alt and the like), but this option does not suit me.
Wrote procedure, but at me the text was not replaced.
I wrote in Lines Memo1 : [Memo2.Lines.Text], it works (such an example is given in the manual), but this option will not work, you know why.
There is an option to transfer text from the program form to Memo2 DialogPage, but the data is not transferred, because DialogPage is not created by condition when the report is launched, but must be called by double clicking on Memo1.
###
I would appreciate your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zed, 2019-04-26
@White_Bambie

Memo2.Lines.Text := Memo1.Lines.Text;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question