INDENT

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(New page: INDENT Syntax: INDENT number-of-spaces Placement: See discussion. Discussion: The INDENT command indents the printed lines or the report from the left edge of the page if the MARGI...)
 
Line 1: Line 1:
-
INDENT  
+
 
-
Syntax:  INDENT number-of-spaces   
+
== INDENT ==
-
Placement:  See discussion.   
+
-
Discussion: The INDENT command indents the printed lines or the report from the left edge of the page if the MARGIN command has not been specified, or from the left margin if it has been specified.  
+
'''Syntax:''' <br> INDENT number-of-spaces <br>  
 +
'''Placement:''' <br> See discussion.  <br>
 +
'''Discussion:'''<br>  The INDENT command indents the printed lines or the report from the left edge of the page if the MARGIN command has not been specified, or from the left margin if it has been specified.  
 +
 
Follow the INDENT command with the number of spaces from the left-hand margin where you wish to have the report data begin printing.  
Follow the INDENT command with the number of spaces from the left-hand margin where you wish to have the report data begin printing.  
The INDENT command may be used globally or locally, as follows:  
The INDENT command may be used globally or locally, as follows:  
-
 
+
'''Globally''' <br>
-
Globally  
+
If you use the INDENT command before the REPORT command, all of the subsequent secondary print lines (which result from USING statements) will be indented.  
If you use the INDENT command before the REPORT command, all of the subsequent secondary print lines (which result from USING statements) will be indented.  
-
For example:  
+
'''For example:'''
     INDENT 6        ! INDENT command used in global section
     INDENT 6        ! INDENT command used in global section
Line 22: Line 24:
     PRINT ...      ! this line will also be indented 6 spaces
     PRINT ...      ! this line will also be indented 6 spaces
      
      
-
Locally  
+
'''Locally''' <br>
If you use the INDENT command after the REPORT command, the indentation applies only to the next secondary print line, ie the one following the next USING.  
If you use the INDENT command after the REPORT command, the indentation applies only to the next secondary print line, ie the one following the next USING.  
-
For example:  
+
'''For example:'''
     REPORT
     REPORT

Latest revision as of 09:29, 6 June 2009

INDENT

Syntax:
INDENT number-of-spaces
Placement:
See discussion.
Discussion:
The INDENT command indents the printed lines or the report from the left edge of the page if the MARGIN command has not been specified, or from the left margin if it has been specified.

Follow the INDENT command with the number of spaces from the left-hand margin where you wish to have the report data begin printing.

The INDENT command may be used globally or locally, as follows:

Globally
If you use the INDENT command before the REPORT command, all of the subsequent secondary print lines (which result from USING statements) will be indented.

For example:

    INDENT 6        ! INDENT command used in global section
    REPORT
    .
    PRINT ...
    USING ...
    PRINT ...       ! this line will be indented 6 spaces
    USING ...
    PRINT ...       ! this line will also be indented 6 spaces
    

Locally
If you use the INDENT command after the REPORT command, the indentation applies only to the next secondary print line, ie the one following the next USING.

For example:

    REPORT
    .
    PRINT ...
    USING ...
    PRINT ...
    INDENT 6        ! INDENT command used in local section
    USING ...
    PRINT ...       ! this line will be indented 6 spaces
Personal tools