QOut Function (Usual) | |
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.19
Syntax FUNCTION QOut(
uValueList PARAMS USUAL[]
) AS VOID
public static void QOut(
params Usual[] uValueList
)
Request Example
View SourceParameters
- uValueList
- Type: Usual
A comma-separated list of expressions of any data type to display to the console.
If QOut() is specified without arguments, a carriage return/linefeed pair is displayed.
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:
1QOut("Hello", 20, TODAY())
2
This example uses QOut() with AEval() to list the contents of a literal array to the console:
1LOCAL aElements := {1, 2, 3, 4, 5}
2AEval(aElements, {|element| QOut(element)})
See Also