Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

New line character?

Posted on 1999-01-21
1
Medium Priority
?
880 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

926 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