Files
harbour-core/tests/output.prg
vszakats a4a357a18b 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)
* /harbour/* -> /*
    * moved whole Harbour source tree one level up to
      avoid single 'harbour' top dir
2013-03-15 11:13:30 +01:00

39 lines
1.0 KiB
Plaintext

/*
* $Id$
*/
// Testing Harbour device management
/* Harbour Project source code
http://harbour-project.org/
Donated to the public domain on 2001-03-08 by David G. Holm <dholm@jsd-llc.com>
*/
#ifndef __HARBOUR__
#include "clipper.ch"
#endif
PROCEDURE Main()
OutStd( hb_eol(), "Testing Harbour device management on", Date() )
SET ALTERNATE TO output_a ADDITIVE
Set( _SET_EXTRAFILE, "output_e.ext", .F. )
SET PRINTER TO output_p
SET MARGIN TO 5
QOut( "SCREEN, EXTRA, NOT ALTERNATE, NOT PRINTER" )
@ 5, 5 SAY "SCREEN, NOT EXTRA, NOT ALTERNATE NOT PRINTER"
SET ALTERNATE ON
SET PRINTER ON
QOut( "SCREEN, EXTRA, ALTERNATE AND PRINTER" )
@ 10, 10 SAY "SCREEN, NOT EXTRA, NOT ALTERNATE, NOT PRINTER"
SET DEVICE TO PRINTER
Set( _SET_EXTRAFILE, "" )
QOut( "SCREEN, ALTERNATE AND PRINTER AGAIN, BUT NOT EXTRA" )
SET PRINTER OFF
Set( _SET_EXTRAFILE, "output_e.ext", .T. )
QOut( "SCREEN, EXTRA, AND ALTERNATE, BUT NOT PRINTER" )
@ 15, 15 SAY "PRINTER, NOT SCREEN, NOT ALTERNATE"
EJECT
RETURN