title: How to include a variable between strings in Delphi?
body: <pre><code>procedure TForm1.Button1Click(Sender: TObject);    
  var    
     xlap,xlbook,xlsheet:variant;
     y:integer;
  begin
     xlap:=createoleobject('excel.application');
     xlbook:=xlap.workbooks.add;
     xlap.visible:=true;
     xlsheet:=xlbook.worksheets.add;
  
     for y:=1 to 50 do
     begin 
      xlsheet.cells[y,2].value:= concat('=IF(A',y,'&gt;6,"Good","Bad")')
      inc(y);
    end;
  end;
  </code></pre>
  
  <p>That's my code to make an Excel through Delphi. I want to input the IF formula into column B of the Excel, but there is error when I use the <code>concat('=IF(A',y,'&gt;6,"Good","Bad")')</code>.</p>
  
  <p>May be I need another way to include y between those strings.</p>
  
  <p>Any suggestion? Thanks before</p>