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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

\n equivalent

Is there equivalent of "string1 \n string2" usually used in C ?

using 'string1 ' + chr(13) + 'strin2'is not an elegant solution
0
bor061297
Asked:
bor061297
1 Solution
 
ronit051397Commented:
'String1'#13'String2'
0
 
interCommented:
Hi friends,

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

Igor
0
 
dvalineCommented:
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
 
hustchCommented:
\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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now