Solved

New line character?

Posted on 1999-01-21
1
870 Views
Last Modified: 2011-02-20
This is really dumb, but what is a new line character in
Delphi?

thanks.
0
Comment
Question by:danil082697
1 Comment
 

Accepted Solution

by:
mrbump earned 0 total points
ID: 1362725
I presume you just want to split some text onto multiple lines?

I do this by adding a CHR(10) <LINE FEED> into a string.
It can also be done with a CHR(13) <CARRIAGE RETURN> or both.

Thus

messageDlg('Line 1'+CHR(13)+'Line 2',mtInformation,[mbOK],0);

would print:

Line1
Line2

Hope this helps
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now