Problem with StrComp

Results 1 to 2 of 2

Thread: Problem with StrComp

  1. #1
    Raymond Guest

    Default Problem with StrComp

    Hi,<BR>I&#039m having trouble with a line in my asp. I wrote:<BR><BR>If Not (StrComp(objRS("Password"), password, vbTextCompare) = 0) Then<BR><BR>once it hits this line the page reads: error &#039 80020009&#039 <BR>and I don&#039t know what&#039s wrong.

  2. #2
    sm549 Guest

    Default RE: Problem with StrComp

    It may not have the constant vbTextCompare defined, so try its literal value:<BR>&nbsp&nbspIf Not (StrComp(objRS("Password"), password, 1) = 0) Then<BR><BR>Or why not just:<BR>&nbsp&nbsp&#039See if password matches<BR>&nbsp&nbspIf (Trim(objRS("Password")) &#060;&#062; password) Then<BR><BR>HIH

Posting Permissions

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