String

how can i delete the first 3 characters from a string?

Comments

  • : how can i delete the first 3 characters from a string?
    :
    [code]
    [italic][blue]// s is a string that you want to delete the first 3 characters from[/italic][/blue]
    s:=copy(s,4,999);
    [italic][blue]{ Copy from the 4th character until either 999 or the end of the string. Hopefully, the string ends first.

    the characters are deleted}
    [/blue][/italic]
    [/code]
  • WOW, thanx, it was easier than i thought.
  • : WOW, thanx, it was easier than i thought.
    :
    Or you could use:
    [code]
    system.Delete(s, 1, 3);
    [/code]
  • Thanx, that's excactly what i needed
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories