Difference between revisions of "PCOL()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Printing
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to return printer column position function
 
Function to return printer column position function
Line 12: Line 8:
  
 
==See Also==
 
==See Also==
[[COL()]], [[PROW()]], [[ROW()]], [[SCOLS()]], [[SET DEVICE]], [[SROWS()]]
+
[[COL()]], [[DB_PRINT]], [[PROW()]], [[ROW()]], [[SCOLS()]], [[SET CONSOLE]], [[SET DEVICE]], [[SET PRINT]], [[SET PRINTER]], [[SET SCREENMAP]], [[SROWS()]]
  
  
Line 29: Line 25:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Printing]]
 +
[[Category:Printing Functions]]

Latest revision as of 17:36, 3 December 2009

Purpose

Function to return printer column position function


Syntax

PCOL()


See Also

COL(), DB_PRINT, PROW(), ROW(), SCOLS(), SET CONSOLE, SET DEVICE, SET PRINT, SET PRINTER, SET SCREENMAP, SROWS()


Description

The PCOL() function returns the current column position of the printer. The current print position is updated whenever you issue @...SAY commands. Normal output using other commands does not have an effect. The main use of the PCOL() function is for calculating relative column addressing when designing formatted reports for output to the printer. The SET DEVICE TO PRINT command must be in effect for the print column position to be tracked.


Example

set print on
set device to print
@0,0 say "Testing"
@0,pcol()+20 say "o.k."


Products

Recital, Recital Server