Type mismatch error?

Results 1 to 2 of 2

Thread: Type mismatch error?

  1. #1
    Join Date
    Dec 1969

    Default Type mismatch error?

    Can some1 please tell me why i&#039;m getting this error:<BR><BR>Type mismatch: &#039;arrC_Name&#039; line 233<BR><BR>here is the code:<BR><BR>strC_Email = Request.Form("F01_I03_Email")<BR><BR>If strC_Email &#060;&#062; "" Then<BR><BR>Response.Cookies("Info")("Email") = strC_Email<BR>Response.Cookies("Info").Expires = Now() + 365<BR><BR>arrC_Name = split(strC_Email,"@")<BR><BR><BR>End if<BR><BR>Response.Write(arrC_Name(0)) &#039;&#060;-- line 233<BR><BR>thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Type mismatch error?

    &#060;%<BR>strC_Email = Request.Form("F01_I03_Email") <BR>If strC_Email &#060;&#062; "" Then <BR> Response.Cookies("Info")("Email") = strC_Email <BR> Response.Cookies("Info").Expires = Now() + 365 <BR> arrC_Name = split(strC_Email,"@") <BR>End if <BR>%&#062;<BR><BR>What happens if you never go inside that IF statement? arrC_Name never gets assigned to that array, and subsequently it&#039;s probably still a blank string or something. Which you can&#039;t access like that.<BR><BR>That&#039;s my guess.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts