xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DevOut()

Outputs a value to the current device.

Syntax

DevOut( <expression>, [<cColorString>], [<nRow>, <nCol>] ) --> NIL

Arguments

<expression>
Any expression whose value should be output to the current output device selected with the SET DEVICE command.
<cColorString>
This is an optional SetColor() compliant color string that defines the output color. If omitted, the standard color of the currently selected color string is used.
<nRow> and <nCol>
Two optional numeric values can be passed that specify the row and column coordinates for output. They default to Row() and Col() for the screen, and PRow() and PCol() for the printer output device.

Return

The return value is always NIL.

Description

DevOut() is a console function that outputs the value of an expression to the screen or the printer.

Info

See also:@...SAY, Col(), DevOutPict(), DevPos(), QOut() | QQOut(), Row(), SET DEVICE, SetPos()
Category: Output functions
Source:rtl\console.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example shows the output of a value with
// DevOut() and with the command @...SAY:

   PROCEDURE Main

      DevOut( "xHarbour compiler", "W+/R", MaxRow(), 2  )

      @ MaxRow(), 2 SAY "xHarbour compiler" COLOR "W+/R"

   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe