SET DEVICE

From Recital Documentation Wiki
Revision as of 14:38, 15 April 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

Class

Input/Output


Purpose

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


Syntax

SET DEVICE TO SCREEN | PRINT | FILE <filename>


See Also

@...GET, @...SAY, COL(), PCOL(), PRINT, PROW(), REPORT, ROW(), SET PRINT, SET PRINTER, TREPORT


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