Solved

\n equivalent

Posted on 1998-03-28
4
171 Views
Last Modified: 2010-04-06
Is there equivalent of "string1 \n string2" usually used in C ?

using 'string1 ' + chr(13) + 'strin2'is not an elegant solution
0
Comment
Question by:bor061297
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1360991
'String1'#13'String2'
0
 
LVL 5

Expert Comment

by:inter
ID: 1360992
Hi friends,

I think #10#13 pair is more suitable for line break

Igor
0
 
LVL 1

Accepted Solution

by:
dvaline earned 50 total points
ID: 1360993
In the declarations section of preferably a shareable unit type the following

const (i think, you might have to VAR)
  nl = chr(13) + chr(10)

Then all you have to do is inclde it in your uses area, and then when you use the string you type

string1 + nl + string2


0
 
LVL 1

Expert Comment

by:hustch
ID: 1360994
\n is equivalent to #10
\r is equivalent to #13
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

739 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