Difference between revisions of "NewLine"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Starts a new line and returns carriage. ==== Notes ==== Use the "+" character to add NewLine to a string expression. ==== Example ==== <syntaxhighlight>FileAppend("...")
 
 
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.
 
   
 
   
==== Notes ====
+
== Examples ==
Use the "+" character to add [[NewLine]] to a string expression.
+
<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.
==== Example ====
+
 
<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]]

Latest revision as of 07:30, 9 February 2012

Starts a new line and returns carriage.

Usage

NewLine

Notes

  • Use the "+" character to add NewLine to a string expression, or
  • Use Text to generate a string including new lines.

Examples

FileAppend("c:\testfile.txt", "We can see a new bar for" + NumToStr(Date, 0) + NewLine);

Will print the specified line to the 'testfile.txt' followed by a new line.

Print(Text("Hello", NewLine, "World!"));

Will print

Hello
World!

to the PowerLanguage Editor output log.