iOS Question Delete a word in string

Discussion in 'iOS Questions' started by Ramezanpour, Apr 20, 2015.

  1. Ramezanpour

    Ramezanpour Active Member Licensed User

    Hi all,

    I want to delete a word in string. for example:

    my string is : "b4xramezanpour"

    dim a as string

    a = "b4xramezanpour"


    Now I want to delete b4x in that string and put "ramezanpour" in a
     
  2. narek adonts

    narek adonts Well-Known Member Licensed User

    you should use string.substring
     
    Ramezanpour likes this.
  3. Ramezanpour

    Ramezanpour Active Member Licensed User

    Please give me a code.

    (I don't know the string character)
     
  4. klaus

    klaus Expert Licensed User

    Code:
    a = a.Replace("b4x""")
     
    lemonisdead likes this.
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