#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    2
    Rep Power
    0

    help a Delphi N00bie.


    Hi all, Im new to these here forums, but can I be so much of annoyance as to ask this question?

    Ive made a simple file editor, know I need to know how to load a single line of a text editor, say, line 5.

    It also must be able to load single lines from varing text files with varying ammounts of lines. I know some delphi, and Ive looked in the delphi help files, but I aint found any answers that will help me with this one.

    Thanks for any help you provide folks,

    THCi.
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,594
    Rep Power
    4207
    You can access individual lines in a TMemo component, by using Memo.Lines[xxx] property, where xxx is a number.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    2
    Rep Power
    0
    Cool, thanks.

IMN logo majestic logo threadwatch logo seochat tools logo