I'm trying to retreive from a cookies collection and pass each value into a variable, an array called strCookie().
I'm get this error....
Error Type:
Sun ONE ASP VBScript runtime (0x800A000D)
Type mismatch
the code is....
<%
dim iCount
dim objRS
dim objConn
dim strConnectionString
dim strCookie()
For iCount = 1 To Request.Form("menu").count
Response.Cookies("menu" & " " & iCount & " ") = Request.Form("menu")(iCount)
Next
'Loop through each Cookie
redim strCookie(0)
For Each x in Request.Cookies(x)
'this is the line the error refers to..
strCookie(x) = Request.cookies(x)
response.write strCookie(x)
Next
I'm get this error....
Error Type:
Sun ONE ASP VBScript runtime (0x800A000D)
Type mismatch
the code is....
<%
dim iCount
dim objRS
dim objConn
dim strConnectionString
dim strCookie()
For iCount = 1 To Request.Form("menu").count
Response.Cookies("menu" & " " & iCount & " ") = Request.Form("menu")(iCount)
Next
'Loop through each Cookie
redim strCookie(0)
For Each x in Request.Cookies(x)
'this is the line the error refers to..
strCookie(x) = Request.cookies(x)
response.write strCookie(x)
Next