I am sending a querystring to a page and the page is splitting one of the values into an array. The code for splitting the string looks like this:
If Request.QueryString("hlight") = "" Then
strHlight = ""
Else
strHlight = Split(Request.QueryString("hlight")," ", -1)
End If
I recieve this error on my page:
Microsoft VBScript runtime
error '800a000d'
Type mismatch: '[string: "god"]'
/display.asp, line 265
This is the code starting at line 264
intHlight = 0
Do While (strHlight(intHlight))
strBody = Replace(rsCommon("Body"), strHlight(intHlight), "<span class='hlight'>" & strHlight(intHlight) & "</span>")
intHlight = intHlight + 1
Loop
Any ideas?