1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Contains but not case sensitive

Discussion in 'Android Questions' started by ElliotHC, Aug 15, 2019.

  1. ElliotHC

    ElliotHC Active Member Licensed User

    I need to use .contains but I need it not to be case sensitive... e.g. string.contains("hello") and I need it to work with hElLo HEllO hELLO etc.. etc..
     
  2. Kiffi

    Kiffi Well-Known Member Licensed User

    Code:
    YourString.ToLowerCase.Contains("hello")
     
    Erel, OliverA and ElliotHC like this.
  3. ElliotHC

    ElliotHC Active Member Licensed User

    Thanks Kiffi
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice