PRINTCONSOLE

Purpose:

Prints a value as text in the display console.

Syntax:

PRINTCONSOLE(val, stderr)

val

-

A string, series or scalar. The value to display.

stderr

-

Optional. An integer flag, print to standard error console.

  0:

Display in normal command window (default).

  1:

Display in debugger or error console.

Returns:

Nothing, the value as a string is printed to the display console.

Example:

printconsole("hi")

 

prints 'hi' in the display console.

Example:

printconsole(version + strescape("\n"))

 

prints the current product version with a newline in the display console.

Example:

printconsole(sqrt(pi))

 

prints the value of the square root of p in the display console.

Example:

printconsole(rand(3), 1)

 

prints a 3x3 table of random numbers in the debugging (stderr) console.

Remarks:

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.

See Also:

DISP

ECHO

INPUT

MESSAGE

PRINTF

SPRINTF

VIEWTEXT