xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DispOut()

Displays a value on the screen

Syntax

DispOut( <expression>, [<cColor>] ) --> NIL

Arguments

<expression>
Any expression whose value should be output to the screen.
<cColor>
An optional SetColor() compliant color string can be specified for display. It defaults to the standard color of SetColor().

Return

The return value is always NIL.

Description

The DispOut() function displays the value of <expression> at the current cursor position on the screen, using the color <cColor>, if specified. DispOut() ignores the SET DEVICE setting and sends output always to the screen.

Info

See also:Col(), DevOut(), DispBegin(), DispCount(), DispEnd(), DispOutAt(), OutStd(), QOut() | QQOut(), Row(), SetPos()
Category: Output functions , Screen functions
Source:rtl\console.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example changes the current cursor position and displays
// two strings using different colors.

   PROCEDURE Main
      CLS

      SetPos( 10, 20 )

      DispOut( "xHarbour", "W+/R" )

      DispOut( "compiler", "W+/G" )
   RETURN

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