Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>set margin</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SET MARGIN
 Set the page offset for all printed output
------------------------------------------------------------------------------
 Syntax

     SET MARGIN TO [<nPageOffset>]

 Arguments

     TO <nPageOffset> is a positive number that defines the number of
     column positions to indent from the left side of the page for subsequent
     printed output.  A negative value resets the MARGIN to zero.

     SET MARGIN TO with no argument resets the page offset to zero, the
     default value.

 Description

     SET MARGIN is valid for all output directed to the printer from console
     commands and @...SAY.  With console output, the <nPageOffset> indent is
     output whenever there is a new line.  With @...SAY, <nPageOffset> is
     added to each column value.  SET MARGIN has no effect on screen output.

     Note:  Printing with @...SAY and PCOL() with a MARGIN SET in most
     cases adds the MARGIN to each column position.  This happens because
     PCOL() accurately reflects the print column position including the last
     <nPageOffset> output.  The best approach is to avoid the use of SET
     MARGIN with PCOL() for relative column addressing.

 Examples

     .  This example sets a page offset of 5, and then prints a list
        from Sales.dbf:

        USE Sales NEW
        SET MARGIN TO 5
        LIST Branch, Salesman TO PRINTER
        SET MARGIN TO

 Files   Library is CLIPPER.LIB.


See Also: @...SAY PCOL() SET DEVICE SET PRINTER

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson