xHarbour Reference Documentation > Command Reference |
Sets if console display is shown on the screen.
SET CONSOLE ON | off | ( <lOnOff> )
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.
See also: | Set(), SET ALTERNATE, SET DEVICE, SET PRINTER |
Category: | Console commands |
Source: | rtl\set.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
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
http://www.xHarbour.com