Autor Beitrag
hedie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Fr 21.01.05 18:48 
Hallo zusammen

ich möchte das beim klick eines buttons der im quellcode angegebene text dem memo text hinzugefügt wird
also als beispiel:

vorher
memo
-------------
dhsdakjjfd
fdsafsad



nachher
memo
-------------
dfasjdasjha
dfjasdfhjas
zugefügter text

wie kann man das realisieren :roll:

grüsse
hedie

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Fr 21.01.05 18:59 
Wenn ich dich jetzt richtig verstanden habe. Kannst du das so machen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.Button1Click(Sender: TObject);
begin
 with Memo1 do begin
  Clear;
  Add('maxk war hier...');
  Add('');
  Add('...oder auch nicht');
 end;
end;


Gruß,
maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
hedie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Fr 21.01.05 19:01 
er kennt den befehl add nicht

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Fr 21.01.05 19:05 
wie wärs wenn du mal nach "TMEMO" in der Delphihilfe suchst? :roll:
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Fr 21.01.05 19:12 
Ähm, mein Fehler es muss natürlich with Memo1.Lines do begin heißen :oops:

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
hedie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249

WIN XP WIN 2000 WIN Longhorn
D7 Pers D2005 Architect Vollversion
BeitragVerfasst: Fr 21.01.05 19:23 
vielen dank maxk
und karlson

_________________
Grüsse hedie
hört auf traurig zusein hört lieber radio Basilisk