how to get the value of a memo in delphi code

edited July 2020 in FastReport VCL

Hello guys, I need to get the memo value after the report is on the screen, I go through the masterdata and get only the memos that are inside it, but I can only get the text that is written in the memo and not the value, but the return this code comes in white, is there any way I can get the memo value after printed?


Code

MasterData.First;
while not (MasterData.DataSet.Eof) do
begin
   for Col := 0 to MasterData.AllObjects.Count - 1 do
     begin
        TfrxMemoView(MasterData.DataSet).GetData;
        ShowMessage(TfrxMemoView(MasterData.AllObjects.Items[Col]).Value);
     end;
   MasterData.Next;
end;


Help me please, I really need this, have a good day, thank you.

Comments

  • Guuuuuuuuuuuuuuuuuuuys, I solved

    Instead of where you have that line

    TfrxMemoView(MasterData.DataSet).GetData;
    

    put this

    TfrxMemoView(MasterData.AllObjects.Items[Col]).GetData;
    
  • Hello,

    I don't understand the solution.

    What does return "GetData"?

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.