Click or drag to resize

QOut Function

Display the results of one or more expressions in the terminal window to the console.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.4a
Syntax
 FUNCTION QOut() AS VOID
View Source

Return Value

Type: 
Remarks
QOut() is a console function.
It is the functional primitive that creates the ? command.  Like the ? command, it displays the results of one or more expressions to the console.  QOut() outputs carriage return and linefeed characters before displaying the results of <uValueList>. When QOut() displays to the console, Row() and Col() are updated.
If SetPrinter() is TRUE, PRow() and PCol() are updated instead.
If <uValueList> is specified, QOut() displays a space between the results of each expression. You can use QOut() for console display within an expression.
This is particularly useful for blocks, iteration functions such as AEval() and DBEval(), and in a list of statements in the output pattern of a command definition.
Examples
This example displays the values of 3 expressions that are separated by commas:
X#
1QOut("Hello", 20, TODAY())
2// Hello     20        12/17/98
This example uses QOut() with AEval() to list the contents of a literal array to the console:
X#
1LOCAL aElements := {1, 2, 3, 4, 5}
2AEval(aElements, {|element| QOut(element)})
See Also