Solved

\n equivalent

Posted on 1998-03-28
4
170 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

Industry Leaders: 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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

756 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