title: Powerbuilder Syntax. How can i use FOR i = 1 TO 3 loop in this statement replacing these numbers
body: <p>CBX stands for Check Boxes , i want to minimize the codes using for loop but dont know the syntax for PB to recognize concatenations on statements</p>
  
  <pre><code>IF cbx_1.Checked = TRUE THEN
      fw_generate(1, cbx_1.Text)  
  
  END IF
  
  IF cbx_2.Checked = TRUE THEN
      fw_generate(2, cbx_2.Text)  
  
  END IF
  
  IF cbx_1.Checked = TRUE THEN
      fw_generate(3, cbx_3.Text)  
  
  END IF
  </code></pre>