SET DEVICE

From Recital Documentation Wiki
Revision as of 16:19, 10 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SET DEVICE

Class

Input/Output


Purpose

Specify whether @...SAY commands are sent to the printer


Syntax

SET DEVICE TO SCREEN | PRINT | FILE <filename>


See Also

SET PRINT, SET PRINTER, PRINT, REPORT, TREPORT, @...SAY


Description

The SET DEVICE TO PRINT command sends the output from @…SAY commands to the printer. After this command has been issued, the PROW() and PCOL() functions return the current row and column position of the print head on the printer, and the ROW() and COL() functions return undetermined values. When DEVICE is set to PRINT, @...GET commands are ignored. The SET DEVICE TO SCREEN command sends the output from @...SAY commands to the screen. After this command has been issued, the ROW() and COL() functions return the current row and column position of the cursor on the screen, and the PROW() and PCOL() functions return undetermined values.

The SET DEVICE TO FILE command directs @...SAY commands to a file specified by <filename>.

By default, SET DEVICE is set to SCREEN, which is the normal mode of operation.


Example

set device to print
eject
@0,0 say center("SALES REPORT ", 132)
@1,0 say center("---------------------", 132)
set device to screen

// Another example
// Send @...SAYs to a slave printer
set screenmap off
set console off
set device to print
set print on
// Issue @...SAYs here...
set print off
set device to screen
set console on
set screenmap on


Products

Recital Terminal Developer