Autor Beitrag
schermerbua
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 63

Win XP

BeitragVerfasst: Di 12.04.05 18:22 
ich suche nach einer möglichkeit, in einer memo immer nur eine zeile zu überschreiben, ohne dass die anderen dadurch verändert werden. wie kann ich das machen?


Moderiert von user profile iconraziel: Topic aus Sonstiges verschoben am Di 12.04.2005 um 19:44
greg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119

Windows2000, WindowsXP
D5 Prof
BeitragVerfasst: Di 12.04.05 18:28 
Hallo Schermerbua,

Du sprichst die Zeile über den Index des Memos an. Der Index fängt bei Null an. Nachfolgendes Beispiel überschreibt die 3. Zeile auf Knopfdruck.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.Lines[2] := 'Übeldübel';
end;


Gruß
Gregor

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
schermerbua Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 63

Win XP

BeitragVerfasst: Di 12.04.05 18:41 
danke!