Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Absätze in Variablen (https://www.delphipraxis.net/109874-absaetze-variablen.html)

Delphi Code Anfänger 9. Mär 2008 12:19


Absätze in Variablen
 
Wie kann ich Absätze in Variablen machen so das ich mehrere Zeilen text drin speichern könnte?

Apollonius 9. Mär 2008 12:21

Re: Absätze in Variablen
 
Strings können das. Absätze sind ja auch nur Zeichen (in Windows #13#10).

Prototypjack 9. Mär 2008 12:34

Re: Absätze in Variablen
 
Moin,

Delphi hat dafür auch eine predefinierte Variable names sLineBreak.

Beispiel:
Delphi-Quellcode:
s := 'Hallo' + sLineBreak + 'Du!';
Grüße,
Max


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:30 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