how to delete text in a string?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nev
    Contributor
    • Oct 2007
    • 251

    how to delete text in a string?

    i have a textbox.text = "hello"

    given a start point = 2, i would like to delete the 2 'L'

    my final textbox.text = "heo"

    how to do this?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    The .Remove function comes to mind:
    [code]
    int StartIndex = 2;
    int Count = 2;
    string m = "hello";
    m.Remove(StartI ndex, Count);
    {/code]

    Comment

    Working...