String comparison

Results 1 to 2 of 2

Thread: String comparison

  1. #1
    Maury Guest

    Default String comparison

    Problem, asp is setting case sensitive , how i can set asp application case insensitive ?<BR>Thanks

  2. #2
    Jason Buck Guest

    Default RE: String comparison

    Here is a link to msdn.microsoft.scripting which hopefully provides the answer you are looking for.<BR><BR>http://msdn.microsoft.com/scripting/vbscript/doc/vsfctStrComp.htm<BR><BR>Dim MyStr1, MyStr2, MyComp<BR>MyStr1 = "ABCD": MyStr2 = "abcd" &#039 Define variables.<BR>MyComp = StrComp(MyStr1, MyStr2, 1) &#039 Returns 0. &#039equal<BR>MyComp = StrComp(MyStr1, MyStr2, 0) &#039 Returns -1. &#039 less than <BR>MyComp = StrComp(MyStr2, MyStr1) &#039 Returns 1. &#039 gr8tr than<BR><BR>Please let me know.<BR><BR>Respectfully,<BR><BR>Jason<BR>webmast er@wnj.com

Posting Permissions

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