![]() |
Mit button , edit text kopieren
Hi!Ich würde gerne mit einem button den Text aus einer Edit rauskopieren.
geht nicht:
Delphi-Quellcode:
Wie kann mann es umformen?
Edit1.text.CopytoClipboard;
und Edit1.CopytoClipboard; cu coldice111 |
Re: Mit button , edit text kopieren
Als unit Clipbrd einbinden und dann so
Delphi-Quellcode:
Clipboard.AsText := Edit1.Text;
|
Re: Mit button , edit text kopieren
danke es geht
cu coldice 111 |
Re: Mit button , edit text kopieren
Wenn du die Unit Clipbrd nicht benutzen willst möchtest gibt es auch noch eine andere Lösung
Delphi-Quellcode:
Edit1.CopytoClipboard ist so asob man Strg+C im edit drückt, da aber normalerweise kein Text markiert ist wird auch nichts kopiert.
Edit1.SelectAll;
Edit1.CopytoClipboard; Edit1.SelectAll; markiert den gesamten text im Editfeld |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:48 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz