Description
Specifies the width for each column heading in a printed report.
This statement is supported for backward compatibility only; newer programs should use the Print_ functions.
Syntax
ColLength length [ : @FM : length ] ...]
Parameters
The ColLength statement has the following parameter.
Parameter | Description |
---|---|
Length | Printing width of the column heading. If more than one column "length" is specified, each length is delimited by an @FM (field mark). |
Use ColLength with ColHeading. Each value of ColLength indicates the width of the associated heading specified in ColHeading.
If the heading string specified in ColHeading is longer than the width specified in ColLength, the heading will be truncated at the appropriate character. If ColHeading is shorter, the heading will be padded with periods. ColLength does not affect the display of data. To format the display of data, use Fmt.
See also
ColHeading, Fmt(), Footing, Heading, Page, Print
Example
* ColLength uses the expression COLL. COLL = 15 : @FM: 25 ColLength COLL ColHeading "NAME" : @FM : "PHONE" ColLength 15 :@FM: 8 /* This creates a report with the following column heading lengths: */ ColumnLength NAME 15 PHONE 8