Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Label Linebreak

Status
Not open for further replies.

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.

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top