Solved

\n equivalent

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

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

19 Experts available now in Live!

Get 1:1 Help Now