title: Public array not accepting values
body: <p>I have an issue with a public array. I have worked with arrays in other languages, and the following code seems to make sense: it <em>should</em> work.</p>
  
  <p>When I try to get the values of anything in either array, it comes back blank. </p>
  
  <pre class="lang-vb prettyprint-override"><code>public dim TicketSerial(0) as String 
  public dim TicketOpenedDate(0) as Date
  
  function LoadFPRArray(ByVal LoadSerial as string, ByVal LoadTicketOpenedDate as Date) As Boolean
  'Load array of ticket data into global variable (Create a hidden table to 'accomplish this, sort on date). Serial / Opened Date
  
  Dim k as Long
  
  k = UBound(TicketSerial)+1
  
  Redim Preserve TicketSerial(0 to k) 
  Redim Preserve TicketOpenedDate(0 to k)
  
  TicketSerial(k) = LoadSerial
  TicketOpenedDate(k) = LoadTicketOpenedDate
  
  return true
  
  end function
  </code></pre>