title: Array variable is used before assigned a value
body: <p>When I rebuild the solution I get the warning:</p>
  
  <blockquote>
    <p><strong><em>"Variable 'aMyArray' is used before it has been assigned a value."</em></strong></p>
  </blockquote>
  
  <p>A function in VB.NET uses an array which is dynamically populated.  </p>
  
  <p><em>Example:</em></p>
  
  <pre><code>Function MyArray()
      Try
          Dim aMyArray()
          For i = 0 to 100
              ReDim Preserve aMyArray(i)
          Next
      Catch ex As Exception
      End Try
  End Function 
  </code></pre>
  
  <p>How should I declare a dynamically populated array to eliminate this warning?</p>