Command SET MARGIN Foundation

Sets the width of the left margin for printed output.

Syntax
SET MARGIN TO [<nMargin>]
Scope
process-wide
Parameters
<nMargin>
<nMargin> is a positive integer specifying the number of columns to remain empty as the left margin in printed output. A negative value or a missing argument sets the margin back to zero width.
Description

The command SET MARGIN determines the width of the left margin for printed output. A margin is created at the beginning of each row by output of <nMargin> blank spaces ((Chr(32)) to the printer. The function PCol() then returns the value of <nMargin> as the column coordinates of the print head following a carriage return. This should be noted with output using relative coordinates.

SET MARGIN is ignored for screen output.

Examples
SET MARGIN
// The example shows a simple listing of records from 
// a part file, with a ten character wide left margin. 

PROCEDURE Main 

   USE Part NEW 
   SET MARGIN TO 10 

   LIST PartNo, Part, Price TO PRINTER 

   SET MARGIN TO 

RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.