xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

SET CONSOLE

Sets if console display is shown on the screen.

Syntax

SET CONSOLE ON | off | ( <lOnOff> )

Arguments

ON | off | ( <lOnOff> )
Alternatively to the options ON or OFF, a logical expression <lOnOff> in parentheses can be specified. .T. (true) represents ON, while .F. (false) stands for OFF.

Description

The SET CONSOLE command determines whether or not output from console commands is sent to the screen. The console commands display output on the screen without referencing row and/or column position of the cursor. Console commands can simultaneously send output to a printer and/or ASCII text file. Output can be directed to a printer by using the TO PRINTER clause, if it is supported by console commands, or the SET PRINTER ON command. Echoing the output to a file is achieved by the TO FILE clause or the SET ALTERNATE or SET PRINTER TO commands.

When SET CONSOLE is OFF, no output is displayed on the screen. Output to a file or printer however, is not affected by this setting.

Note:  all commands that use explicit row and column positions for output are not affected by the SET CONSOLE setting. Their output is controlled with the SET DEVICE command which selects the output device.

Info

See also:Set(), SET ALTERNATE, SET DEVICE, SET PRINTER
Category: Console commands
Source:rtl\set.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

This example uses REPORT FORM to output records to the printer while no
ouput is send to the screen:

  USE Employees NEW
  SET CONSOLE OFF
  REPORT FORM Name TO PRINTER

  SET CONSOLE ON

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