Anonymous user
Print: Difference between revisions
From MultiCharts
→Example
No edit summary |
|||
Line 44: | Line 44: | ||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight>Print(.1); will print 0.10 in the PowerLanguage Editor Output Log, with three leading spaces inserted | <syntaxhighlight>Print(.1); will print 0.10 in the PowerLanguage Editor Output Log, with three leading spaces | ||
inserted | |||
Print(1.555555:6:3); will print 1.556 in the PowerLanguage Editor Output Log, with one leading space inserted | Print(1.555555:6:3); will print 1.556 in the PowerLanguage Editor Output Log, with one leading space | ||
inserted | |||
Print(Printer,"Print Test"); will send the string expression "Print Test" to the default printer | Print(Printer,"Print Test"); will send the string expression "Print Test" to the default printer | ||
Print(File("C:\test.txt"),CurrentDate,CurrentTime); will save the output of CurrentDate and CurrentTime to the test.txt file in the root directory of the C: hard drive | Print(File("C:\test.txt"),CurrentDate,CurrentTime); will save the output of CurrentDate and | ||
CurrentTime to the test.txt file in the root directory of the C: hard drive</syntaxhighlight> | |||
[[Category:Output]] | [[Category:Output]] |