title: Assign one array to another Classic asp
body: <p>I'm pretty new to classic asp and working with arrays is not fun :(</p>
  
  <p>I keep getting an error on </p>
  
  <pre><code>            dim isMyApiResponse
  
              if MyAvailRooms = "Error" then
                  isMyApiResponse = false
              else
                  isMyApiResponse = true
                  dim MyAvailArray()
  
                  If InStr( MyAvailRooms, "," ) &gt; 1 Then 
                      'response.write("&lt;h2&gt;MyAvailRooms is " &amp; MyAvailRooms)
                      'response.write("&lt;h2&gt;var type of My avil rooms is " &amp; VarType(MyAvailRooms))
                      MyAvailRooms = CStr(MyAvailRooms)
                      dim tempArray
                      tempArray = split(MyAvailRooms, ",")
  
                      dim sizeTempArray
                      sizeTempArray = UBound(tempArray)
  
                      response.write ("&lt;h2&gt;type of sizeTempArray is " &amp;VarType(MyAvailArray))
                      response.write("&lt;br/&gt;type of temp array is " &amp; VarType(tempArray))
  
                      reDim MyAvailArray(sizeTempArray)
                      MyAvailArray  = tempArray
  
                  else 
                      ReDim MyAvailArray(1)
                      MyAvailArray (0) = MyAvailRooms
                  end if
              end if
  </code></pre>
  
  <p>I'm getting a type mismatch on the line "<strong>MyAvailArray  = tempArray</strong>" above. I guess it's a dynamic fixed array problem or something. Both types are coming back as 8204 in my reponse.write, which is variant I think.</p>
  
  <p>I'm at the end of my tether, please help me Classic ASP ninjas!</p>