#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2009
    Posts
    215
    Rep Power
    5

    Remove specific line (with text) from a TMemo?


    Hello, anyone can help me with a working code that can help me remove a specific line from a TMemo, where for example I want to remove the 2nd line from the list of text below, where the TMemo is in ReadOnly mode:

    1. Lorem Ipsum.....
    2. this is a test
    3. once upon a time...
    4. hello
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2006
    Location
    Carlsbad, CA
    Posts
    2,057
    Rep Power
    383
    From memory:
    myMemo.Lines.Delete(1);

IMN logo majestic logo threadwatch logo seochat tools logo