title: vb6 array with -1 for upper bound
body: <p>Some functions such as <code>Split()</code> will return an array with -1 for the upper bound and zero for the lower bound if the array has no items, eg: </p>
  
  <pre><code>Dim s() As String
  s = Split("", ",")
  Debug.Print UBound(s)
  Debug.Pring LBound(s)
  </code></pre>
  
  <p>In this case UBound(s) will equal -1 and LBound(s) will equal 0. I have a fair amount of code checking for -1 on the upper bound to see if the array has values or not. This works great. </p>
  
  <p>The problem is that I now want to change the array data type from string to long. I cannot seem to create an array of longs with an upper bound of -1 and a lower bound of 0, and the <code>Split()</code> and <code>Join()</code> functions only operate on string arrays.</p>
  
  <p>I would like to be able to return a long array with an upper bound of -1. Is this possible?  </p>