Jan 20, 2003 #1 xeonite Programmer Joined Jan 3, 2003 Messages 3 Location 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 Joined Nov 12, 2002 Messages 3,317 Location US Add +#13+#10 to the end of your string Upvote 0 Downvote
Jan 20, 2003 #3 wyjkmsc Programmer Joined Dec 2, 2002 Messages 15 Location 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.