Error: Cannot assign to a function result
Posted on 2004-04-30
I have the following ASP code:
Response.Write "var arrayData = new Array();" & vbCrLf
do while not rs.eof
... code that loops through a recordset and adds the data to th area...
Response.Write "arrayData(" & intCnt & ").... recordset data
intCnt = intCnt + 1
Everything writes out correctly, but I get a Cannot assign to a function result error at the line that writes out "var arrayData = new Array();" and I do not know what could be causing the error.
Any help would be appreciated. Thanks.