NewLine: Difference between revisions
From MultiCharts
no edit summary
(Created page with "Starts a new line and returns carriage. ==== Notes ==== Use the "+" character to add NewLine to a string expression. ==== Example ==== <syntaxhighlight>FileAppend("...") |
No edit summary |
||
Line 1: | Line 1: | ||
Starts a new line and returns carriage. | Starts a new line and returns carriage. | ||
== Usage == | |||
<syntaxhighlight>NewLine</syntaxhighlight> | |||
== Notes == | |||
* Use the "+" character to add [[NewLine]] to a string expression, or | |||
* Use [[Text]] to generate a string including new lines. | |||
== | == Examples == | ||
<syntaxhighlight>FileAppend("c:\testfile.txt", "We can see a new bar for" + NumToStr(Date, 0) + NewLine);</syntaxhighlight> | |||
Will print the specified line to the 'testfile.txt' followed by a new line. | |||
<syntaxhighlight>FileAppend("c:\testfile.txt","We can see a new bar for"+ NumToStr(Date,0)+ NewLine);</syntaxhighlight> | <syntaxhighlight>Print(Text("Hello", NewLine, "World!"));</syntaxhighlight> | ||
Will print | |||
:Hello | |||
:World! | |||
to the PowerLanguage Editor output log. | |||
[[Category:Text Manipulation]] | [[Category:Text Manipulation]] |