Howdy, Stranger!

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

Categories

String

KASKAS Member Posts: 21
how can i delete the first 3 characters from a string?

Comments

  • Josh CodeJosh Code Member Posts: 675
    : 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]
  • KASKAS Member Posts: 21
    WOW, thanx, it was easier than i thought.
  • zibadianzibadian Member Posts: 6,349
    : WOW, thanx, it was easier than i thought.
    :
    Or you could use:
    [code]
    system.Delete(s, 1, 3);
    [/code]
  • KASKAS Member Posts: 21
    Thanx, that's excactly what i needed
  • Andre YoungAndre Young USAMember Posts: 0

    ________ ( http://forcoder.org ) free ebooks and video tutorials about \ Swift MATLAB Ruby Go Objective-C JavaScript PHP R C# Perl Assembly PL/SQL Scratch Delphi Visual Basic Python C++ C Visual Basic .NET Java F# Erlang LabVIEW Bash VBScript FoxPro Fortran Dart Kotlin Lua Logo Ada Clojure Apex Lisp Scala Awk Scheme COBOL SAS Prolog ML Alice Hack Rust Crystal Julia Transact-SQL ABAP D \

Sign In or Register to comment.