Difference between revisions of "ConsolePrint"
Line 2: | Line 2: | ||
''New to [[Analytica 5.3]]'' | ''New to [[Analytica 5.3]]'' | ||
− | == ConsolePrint( message{{Release| | + | == ConsolePrint( message{{Release|6.0|| : ...}} ) == |
Prints «message» to the [[Typescript Window]]. Returns «message». | Prints «message» to the [[Typescript Window]]. Returns «message». | ||
Line 10: | Line 10: | ||
Because it returns its parameter, it is convenient to just insert it around an intermediate value expression when you want to see that expression. | Because it returns its parameter, it is convenient to just insert it around an intermediate value expression when you want to see that expression. | ||
− | (''New to [[Analytica | + | (''New to [[Analytica 6.0]]'') You can also print multiple items (of different dimensionalities) as separate parameters, such as:<code> |
:[[ConsolePrint]]( 'A=', A, ', B=', B )</code> | :[[ConsolePrint]]( 'A=', A, ', B=', B )</code> | ||
which works without combining the indexes of <code>A</code> and <code>B</code>. | which works without combining the indexes of <code>A</code> and <code>B</code>. |
Revision as of 17:40, 8 January 2021
Release: |
4.6 • 5.0 • 5.1 • 5.2 • 5.3 • 5.4 • 6.0 • 6.1 • 6.2 • 6.3 • 6.4 • 6.5 • 6.6 |
---|
New to Analytica 5.3
ConsolePrint( message : ... )
Prints «message» to the Typescript Window. Returns «message».
This function can be useful during debugging when inserting a MsgBox would require your input too many times. You can instead log info to the typescript console without requiring user input.
Because it returns its parameter, it is convenient to just insert it around an intermediate value expression when you want to see that expression.
(New to Analytica 6.0) You can also print multiple items (of different dimensionalities) as separate parameters, such as:
ConsolePrint( 'A=', A, ', B=', B )
which works without combining the indexes of A
and B
.
To view the Typescript Window, press F12.
See Also
- MsgBox
- WriteTextFile -- Better when logging a large about of info, use the «append» flag.
- Photo typescript commmand
Comments
Enable comment auto-refresher