Prints a value as text in the display console.
PRINTCONSOLE(val, stderr)
val |
- |
A string, series or scalar. The value to display. |
||||
stderr |
- |
Optional. An integer flag, print to standard error console.
|
Nothing, the value as a string is printed to the display console.
printconsole("hi")
prints 'hi' in the display console.
printconsole(version + strescape("\n"))
prints the current product version with a newline in the display console.
printconsole(sqrt(pi))
prints the value of the square root of p in the display console.
printconsole(rand(3), 1)
prints a 3x3 table of random numbers in the debugging (stderr) console.
PRINTCONSOLE prints a value to the display console. The display console is the command window used to invoke the application. If there is no command window, the results are displayed in a created command window.
The stderr flag specifies that the result show be displayed in the debugger or error console. If no debugger or error console is available, the result is displayed in the command window.