Hi
Make sure that sContents has value.
Use the following :
sContents =Request.Form("hContents")
if len(sContents)>0 then
arContents = Split(sContents,"|")
else
Response.write "No value in sContents variable"
end if
Thanks
Ravi
> I have an ASP page that retrieves the value of a hidden field then
splits
> the string on |. An example of something I get back would be
> I|I|T|T|T|I. I then want to put these into an array so I can loop
through
> them. However, I keep receiving a "Type Mismatch" error when I get to
the
> Split line. Here is the code:
>
> Dim sContents, arContents()
>
> sContents =Request.Form("hContents")
> arContents = Split(sContents,"|")
>
> Can anyone tell me what is wrong with this code. I do not see anything
> that would cause an error.
>
> Chris