value of variable with an index from delphi to the script

edited 6:53PM in FastReport 4.0
I use the form.reportgetvalue procedure in delphi to pass a variable value from my delphi project to de fastreport script.
In my FR script I defined the following loop:

<!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->for i := 0 to 9 do
begin
mem := Tfrxmemoview(findobject('mem' + inttostr(i));
....
...
if mem <> nil then
mem.text := <variable_i>; //?? // Print the value of variable 'variable i' , (thus: variable1 for mem1, variable2 for mem2,....);
end;<!--fontc--></span><!--/fontc-->

How do I get the integer i into my variablename <variable_i>?

I tried: <variable + inttostr(i)>
<'variable' + inttostr(i)>

Comments

  • gpigpi
    edited 6:53PM
    Try

    mem.text := '<variable_' + inttostr(i) + '>';
  • edited 6:53PM
    Thanks for the hint, it helped me to find the following solution:

    mem.text := '[variable_'+inttostr(i)+']';

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.