ConsolePrint



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


New to Analytica 5.3

ConsolePrint( message  : ..., silent )

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.

New to Analytica 6.5: Set the optional «silent» flag parameter to true to suppress the output to the typescript window. This is useful when you just want the return value, such as with:

ConsolePrint( "", x, silent:true )

Two message values (one blank) are passed in order to get the text that would be printed.

To view the Typescript Window, press F12.

Return value

When only a single message value is provided, the value passed in is returned as the result value. When more than one message value is provided, the return value is the text printed to the typescript window.


See Also

Comments


You are not allowed to post comments.