Tmemo Scrolling old data lazarus / 31-LCL ---------------------------------------------------------------------- chucky · 2025-10-06 18:11 I want to use a TMemo to save log information, but I want to limit the size. I thought setting the MaxLength property would do the trick by dropping the old data and appending the new string, but instead it just quits logging. Can someone tell me how to get TMemo to do that? ---------------------------------------------------------------------- cdbc · 2025-10-06 18:50 Hi Try this:Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type  TForm1 = class(TForm)    Memo1: TMemo;    ...  private    fMaxLogLn: cardinal;    procedure LogLn(const aStr: string);    ...    property MaxLogLines: cardinal read fMaxLogLn write fMaxLogLn;  end;/// - - - - - - - - ///procedure TForm1.LogLn(aStr: string);begin  Memo1.Append(aStr);  if Memo1.Count >= fMaxLogLn then Memo1.Lines.Delete(0);end; That should do the trick  Regards Benny