title: A subscript must be between 1 and size of array ERROR (Crystal Reports)
body: <p>What might be the problem with this code?</p>
  
  <pre><code>**WhilePrintingRecords;
  Shared NumberVar Array myTotal;
  myTotal[UBound(myTotal)];**
  </code></pre>