Results 1 to 7 of 7

Thread: Make VB not case sensitive

Hybrid View

  1. #1
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Make VB not case sensitive

    I wouldn't delete the file, just rename it to something else, and then call that from your program. If it doesn't have an .exe extension, then it won't run. Don't know if it wil run with shell without the extension. You may want to try it out.

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: Make VB not case sensitive

    The easiest way is to put Option Compare Text in the general declarations section of any forms or modules where you want this functionality.

    Once you do this, VB will perform case-insensitive comparisons.
    so, "abc" = "ABC" = True
    Last edited by pnish; Jan 14th, 2005 at 07:29 PM.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  3. #3
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Make VB not case sensitive

    Errr...yea, but that would ALL text comparisons would be done like that in the form.
    I wouldn't use it, but I suppose that's down to personal choice.

    WOka

  4. #4
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: Make VB not case sensitive

    Quote Originally Posted by Wokawidget
    Errr...yea, but that would ALL text comparisons would be done like that in the form.
    Quote Originally Posted by zachdoty
    I am trying to write a program I wanted to know if I disable the case sensitive?
    Just giving him what he asked for.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

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