Fast Report Command in string

edited 7:36AM in FastReport VCL
I need to use a string to get the data from fast:

procedure Memo9OnBeforePrint(Sender: TfrxComponent);
begin
i:= '<frxDBMetodosPagamentos."codigo">';
imp:= i ;
end;



It's possible?

Comments

  • PolomintPolomint Australia
    edited 7:36AM
    asuna157 wrote: »
    It's possible?
    Have a look at the Demo Projects for more on this. But you could try:
    procedure Memo9OnBeforePrint (Sender: TfrxComponemt);
    var
      memo: TfrxMemoView;
    begin 
      memo := FindObject('codigo') as TfrxMemoView;
      if memo <> nil then
        i := StrToInt (memo.Text);
    end;
    

    You should make the code more robust. I've just posted the "essentials".

    Cheers, Paul

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.