Solved

New line character?

Posted on 1999-01-21
1
873 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

803 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