Results 1 to 5 of 5

Thread: comparing strings[resolved]

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    48

    comparing strings[resolved]

    When comparing strings, in an "if" statement, is there a way to make it not case sensitive?

    -tony
    Last edited by tony_geekrant; Nov 14th, 2002 at 02:15 PM.

  2. #2
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075
    Wrap each string in lcase() or ucase().
    seoptimizer2001
    VB 6.0, VC++, VI, ASP, JavaScript, HTML,
    Perl, XML, SQL Server 2000

    If God had intended us to drink beer, He would have given us stomachs.


    Please use the [code] and [vbcode] tags in your posts!
    If you don't know how to use them please go HERE!


  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    48
    I'm sorry i'm retarted, i can jsut convert them all to lowercase in the comparison. My appologies if you wasted your time reading this.

    -tony

  4. #4

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    48
    Thanks, clearly, i'm also slow.

  5. #5
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075
    No prob...
    seoptimizer2001
    VB 6.0, VC++, VI, ASP, JavaScript, HTML,
    Perl, XML, SQL Server 2000

    If God had intended us to drink beer, He would have given us stomachs.


    Please use the [code] and [vbcode] tags in your posts!
    If you don't know how to use them please go HERE!


Posting Permissions

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



Click Here to Expand Forum to Full Width