Function OutErr() Foundation
Outputs a list of expressions to the standard error device.
Syntax
OutErr( <Expression,...> ) --> NIL
Parameters
<Expression,...>
The list <Expression,...> contains expressions whose values are output. The data type of the expressions can be any data.
Return
The return value of OutErr() is always NIL.
Description
The output function OutErr() outputs to the operating system level and sends the values of <Expression,...> to the standard error device It works much like the function QOut(), but does not use the common Xbase++ output routines.
The function OutErr() only differs from the function OutStd() in the output channel it uses.
Examples
// In the example an attempt is made to open a non-existent
// file. The error code is determined with FError() and
// output with OutErr().
PROCEDURE Main
LOCAL nErrCode, nHandle
nHandle := FOpen("ABCDEFG.TXT")
nErrCode:= FError()
OutErr("File error ", nErrcode, " has occurred")
RETURN
// In this example the output of the program TestErr
// is redirected to a file.
C:>TESTERR 2> OUTPUT.ASC
Feedback
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.