Autor Beitrag
allshoot
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22


d5 standart
BeitragVerfasst: Mo 27.03.06 10:49 
Hallo Leute,

habe wieder mal ein Problem mit Delphi.

Ich möchte einem Label Text mit Zeilenumbrüchen zuweisen und habe es folgendermaßen probiert:
ausblenden Delphi-Quelltext
1:
2:
 Label := Format('Sie haben %s von %s erreicht! #13#10 #13#10 Sie haben bestanden!', 
[inttostr(punkte), inttostr(gespunkte);]

(natürlich in 1 Zeile!)

Das Programm gibt mir aber den Text genauso aus, wie er eingegeben ist, d. h. ohne Zeilenumbruch.
Wie muss ich es ihm übergeben, dass er den Zeilenumbruch macht?

Irgendwann werde auch ich es lernen :roll:

THX

allshoot

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Mo 27.03.06 10:53 
ausblenden Delphi-Quelltext
1:
2:
Label := Format('Sie haben %s von %s erreicht! ' +  #13#10 + #13#10 '+ Sie haben bestanden!', 
[inttostr(punkte), inttostr(gespunkte);]
allshoot Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22


d5 standart
BeitragVerfasst: Mo 27.03.06 11:24 
Danke!

So ähnlich hatte ich es mehrmals probiert, jedoch ohne Erfolg! :(
So funktioniert es! :idea:
Danke schön!!

allshoot