title: Is it possible to programmatically iterate through a table within a formula in crystal reports?
body: <p>Is it possible to programmatically iterate through a table within a formula in crystal reports?</p>
  
  <p>E.G. If I have a master table and a detail table can I iterate through the detail table e.g.</p>
  
  <p>( psuedo code )</p>
  
  <p>local numberVar Total := 0</p>
  
  <p>While not EOF()</p>
  
  <pre><code>IF Type = "+"
      Total = Total + Quantity
  ELSE IF Type = "-"
      Total = Total - Quantity
  ENDIF
  
  &lt;Next Record&gt;
  </code></pre>
  
  <p>End While</p>