Jan 20, 2003 #1 xeonite Programmer Jan 3, 2003 3 CA Is there a command in Delphi equivalent to VBs vbCrLf. Basicly having the label do a line break so text such as 'example' could be possible. example: Programmer 1: Hi how are you today. Programmer 2: Well fine thank you.
Is there a command in Delphi equivalent to VBs vbCrLf. Basicly having the label do a line break so text such as 'example' could be possible. example: Programmer 1: Hi how are you today. Programmer 2: Well fine thank you.
Jan 20, 2003 #2 Zathras Programmer Nov 12, 2002 3,317 US Add +#13+#10 to the end of your string Upvote 0 Downvote
Jan 20, 2003 #3 wyjkmsc Programmer Dec 2, 2002 15 CN I did it in this way: At first define a constant like this: Const sCrLf=Chr($0d)+Chr($0a); then you can use it in your label's caption: Label1.Caption:='Hi how are you today ?'+sCrlf +'Well fine thank you .'+sCrlf+ +'And you ?'; Hope helps. Upvote 0 Downvote
I did it in this way: At first define a constant like this: Const sCrLf=Chr($0d)+Chr($0a); then you can use it in your label's caption: Label1.Caption:='Hi how are you today ?'+sCrlf +'Well fine thank you .'+sCrlf+ +'And you ?'; Hope helps.