title: Error says: "a running total cannot refer to a print time formula" (Crystal Reports)
body: <p>I want to put values in an shared array and print it to another sub report in the Details section to print each value of the array one by one.</p>
  
  <p>I have Googled, yet I don't seem to get the proper answer. </p>
  
  <p>Here is the code:</p>
  
  <pre><code>// 1st Sub Report
  WhilePrintingRecords;
  shared numberVar array Totdepot;
  
  Redim preserve Totdepot[UBound(Totdepot)+1];//more space added to array.
  Totdepot[UBound(Totdepot)+1]:={dtSumDe… + {dtSumDealer2.inv_depot2} + {dtSumDealer2.inv_depot3} + {dtSumDealer2.inv_depot4} + {dtSumDealer2.inv_depot5} + {dtSumDealer2.inv_depot7} + {dtSumDealer2.inv_depot6} + {dtSumDealer2.inv_depot8} + {dtSumDealer2.inv_depot9};
  
  // 2nd Sub Report
  WhilePrintingRecords;
  shared numberVar array Totdepot;
  Totdepot
  </code></pre>
  
  <p>I'm trying to print the second value of the array still it doesn't work. Error reads: 
  "A running total cannot refer to a print time formula" or "The result of a formula cannot be an array"</p>