Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Text in Memos kopieren (https://www.delphipraxis.net/17144-text-memos-kopieren.html)

Hansa 28. Feb 2004 20:00


Text in Memos kopieren
 
Hi,

ich brauche 3 Memos. Eines davon soll angezeigt werden. Wenn nun das dritte statt dem zweiten angezeigt werden soll, wie mache ich das ? Wie kann ich den Inhalt speichern und je nach Fall anzeigen ?
Delphi-Quellcode:
Memo2 := Memo1;
geht anscheinend nicht.

Matze 28. Feb 2004 20:02

Re: Text in Memos kopieren
 
Ich weiß nicht genau, was du meinst. :gruebel:

sowas?

Delphi-Quellcode:
Memo2.Text := Memo1.Text;

Basic-Master 28. Feb 2004 21:49

Re: Text in Memos kopieren
 
versuch
Delphi-Quellcode:
memo2.assign(memo1);
oder
Delphi-Quellcode:
memo2.text := memo1.text;
memo2.selstart := memo1.selstart;
memo2.sellength := memo1.sellength;
memo2.setfocus;


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:55 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz