Difference between revisions of "SET DEVICE"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 15: Line 15:
  
 
==See Also==
 
==See Also==
SET PRINT, SET PRINTER, PRINT, REPORT, TREPORT, @...SAY
+
[[@...SAY]], [[PRINT]], [[REPORT]], [[TREPORT]], [[SET PRINT]], [[SET PRINTER]]
  
  
Line 52: Line 52:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Set_Commands]]
+
[[Category:Set_Commands|DEVICE]]

Revision as of 12:41, 11 March 2009

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

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


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