• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • 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

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

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