title: How can I return an array from a function in classic asp?
body: <p>Tried this</p>
  
  <pre><code>Function myfunction()
  Dim myArray(1)
  myArray(0) = "1"
  myArray(1) = "2"
  
  myfunction = myArray
  End Function
  
  Dim newarray = myfunction()
  </code></pre>
  
  <p>And I get 500 error.</p>
  
  <p>I'm using IIS7 with .NET runtime ASP.Net 2.0/3.0/3.5 On Godaddy's free economy hosting if that helps.</p>