Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TMemo limit of lines 3

Status
Not open for further replies.

Totte

Programmer
Jun 6, 2001
317
SE
I have a form with amongst other a TMemo. I use that TMemo to write status information (i.e. "2005-01-11 13:42 Statistic fetched OK" and so forth).

As the program are to be run 24/7 without human intervention i would like to be able to remove old lines so i limit the number of lines to a certain number, like 20 or so.

What i essentialy would like to do is to remove the topmost line and thus move the rest of the lines up automatically. The criteria for when to remove that line is ready (TMemo->Lines->Count) but i can't find the function to remove a line from the surface of the earth.

Any ideas?

Totte
Keep making it perfect and it will end up broken.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top