Get text value from object

edited 4:39PM in FreeReport
I have a Memo object without Text but with a small script. After run the preview I want extract the value of Memo (calculate by the script).

I use this code:

var
t: TfrMemoView;
begin
t := TfrMemoView(frReport1.FindObject('Memo5'));
Memo1.Lines.Add(t.Text);
end;

However on preview I see "1000000" (as text of Memo5) on Memo1 (a simple TMemo component) I see black string.

On my small example the script of Memo5 is "Text := [Fattura.Spese]*3+1000000" when [Fattura.Spese] = 0.

Can you help me?

I don't understand why my code works only if I use the Memo25.Memo property but not with Memo25.Script property.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.