Set the page offset for all printed output
SET MARGIN TO [<nPageOffset>]
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.
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.
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.
. 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
@…SAY, PCOL(), SET DEVICE, SET PRINTER