title: Crystal Reports: Create Array or get values from a column
body: <p>Say I'm working on a report, on a column called <code>someTable.someColumn</code>. What I need is to have all of the values in the ReportHeader. I know I cound create a subreport, pass them this column and iterate it in the details, but I would like to know if it's possible to do it without a subreport.</p>
  
  <p>If I use the following, I get the right result, which in my case is 9:</p>
  
  <pre><code>COUNT(someTable.someColumn)
  </code></pre>
  
  <p>I also tried the following, but it doesn't work - it only takes one of the 9 values randomly.</p>
  
  <pre><code>Local NumberVar i := 0;
  Local StringVar Array items := {someTable.someColumn};
  Local StringVar output := "";
  while (i &lt; count(items)) do (
    i := i+1;
    output := output + items[i];
  );
  
  output;
  </code></pre>
  
  <p>Is it possible to iterate over a column in order to get the values?</p>