SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    FindItem is not case-sensitive


    Problem 1

    I am trying to use FindItem to locate
    strings in a drop list. However, I am
    finding that FindItem is not case-sensitive.

    eg. It does not differentiate between
    "groupX" and "groupx" in a droplist.

    How do I get around this ? Or does this
    mean that I have to read the entire
    list of strings in the listbox into
    a LIST and then do the search myself ?

    Problem 2

    How do I make MatchStr case-sensitive ?



    ------------------

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    Sunyyvale CA USA
    Posts
    422
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: FindItem is not case-sensitive

    try using Select method. FindITem is to get the index

    ------------------
    Sree
    Sree

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: FindItem is not case-sensitive

    Aside from FindItem.

    There might be a problem. It might be it only returns the first occurrence of a pattern(most likely) and is case insensitive.

    For case sensitive search use strpos, if you need to make your own search function. For recurrent search(ie: find third occurrence of a word) it's more work.



    ------------------

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:38 PM.

Copyright BetaSoft Inc.