title: Type mismatch on an Array assignment in ASP
body: <p>Its been a while since I've worked with ASP, but I'm getting a Type mismatch error on what seems to be a simple assignment statement.  Can anyone shed some light on why this might be happening.</p>
  
  <p>This works, but when I try to foreach an unassigned Questions block I get an Object not a collection error</p>
  
  <pre><code>Class Survey
    public ID
    public Title
    public Questions
  End Class
  
  Sub Test()
    Dim oSurvey
    Set oSurvey = new Survey
    Dim aQuestions(2)
    Set aQuestions(0) = new Question
    ' Other aQuestions assignments
    oSurvey.Questions = aQuestions
  End Sub
  </code></pre>
  
  <p>Alternately If I setup questions as a dynamic array then the assignment fails with a type mismatch error.</p>
  
  <pre><code>Class Survey
    public ID
    public Title
    public Questions()
  End Class
  
  Sub Test()
    Dim oSurvey
    Set oSurvey = new Survey
    Dim aQuestions(2)
    Set aQuestions(0) = new Question
    ' Other aQuestions assignments
    ' Throws a Type mismatch error here
    oSurvey.Questions = aQuestions
  End Sub
  </code></pre>
  
  <p>Any thoughts?</p>