Android Question vb6 compare strings with LIKE

Discussion in 'Android Questions' started by Sebastjan, Jun 6, 2018.

  1. Sebastjan

    Sebastjan Member Licensed User

    hey guys, VB6 has LIKE comparrison of strings:

    "Sebastjan" LIKE "Seba" <false
    "Sebastjan" LIKE "Seba*" <true
    "Sebastjan" LIKE "??ba*" < true

    does B4A has something like that or how would you
     
  2. LucaMs

    LucaMs Expert Licensed User

    No.

    You (and I too) should study Regex.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    The first one:
    Code:
    If s.Contains("Seba"Then
    The other ones should be implemented with Regex.
     
    Johan Hormaza likes this.
  4. Sebastjan

    Sebastjan Member Licensed User

    Thank you for answers. will check regex :)
     
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