Jump to content

API Debug.PrintLn: Difference between revisions

From Flowcode Help
ReeceL (talk | contribs)
No edit summary
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{| class="mtx-class-macrotable wikitable"
 
|-
<sidebar>API Contents</sidebar>
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
Prints out the string or value with a new-line in the debug window
| width="90%" class="mtx-class-macrohead" | '''PrintLn'''
 
|-
<div style="width:25%; float:right" class="toc">
| colspan="2" | Prints out the string or value with a new-line in the debug window&nbsp;
====Class hierarchy====
|-
[[API Debug|Debug]]
|-
:[[API Debug|PrintLn]]
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
</div>
| width="90%" | Output
__TOC__
|-
 
| colspan="2" | Text to display&nbsp;
==Parameters==
|-
[[Variable Types|STRING]] ''Output''
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - NONE
:Text to display
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
==Return value==
''This call does not return a value''




Line 35: Line 32:
This example shows simple usage of both Print and PrintLn:
This example shows simple usage of both Print and PrintLn:


[[file:SIM_Debug.Print.fcfx]]
{{Fcfile|SIMAPI_Debug_Print.fcfx|SIMAPI_Debug_Print}}

Latest revision as of 14:11, 13 July 2026

PrintLn
Prints out the string or value with a new-line in the debug window 
- STRING Output
Text to display 
- NONE Return


Detailed description

This is a debug diagnostic call to allow text to easily be outputted during events to trace what a program is doing.

During an event, breakpoints can not be used. Calls like this help establish if a flowcharts logic is sound.

Unlike Print, the PrintLn will automatically add a new-line after the text is printed. This is useful for more compact flowcharts.


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Debug.PrintLn("output")

Example flowchart

This example shows simple usage of both Print and PrintLn:

SIMAPI_Debug_Print