Defines a template for a table.
DECLARE-TABLE table_template_name COLUMN-COUNT=number_of_columns [COLUMN-ATTRIBUTES=({column number},{keyword1},{value1}, ..., {keywordn},{valuen})] [ROW-ATTRIBUTES=({keyword1},{value1}, ..., {keywordn},{valuen})] [TABLE-ATTRIBUTES=({keyword1},{value1}, ..., {keywordn},{valuen})]
table_template_name
Name of the table template. Valid values include alphanumeric characters (A-Z, 0–9), underscore (_), and dash (-). Do not use the reserved word NONE.
COLUMN-COUNT
Number of columns in the table.
COLUMN-ATTRIBUTES
Attributes to apply to column cells.
Table 36. Column Attributes
Attribute | Description |
---|---|
BACKGROUND | Background color name or RGB triplet. Default=NONE |
BOLD | YES | NO |
CENTER | YES | NO |
FILL-COLOR | Fill color name or RGB triplet. Default=NONE |
FONT | Font number. Cannot specify a default value |
FOREGROUND | Foreground color name or RGB triplet. Default=BLACK |
ITALIC | YES | NO |
LEADING | Expressed in decipoints |
LINE-COLOR | Color name or RGB triplet of column line (line after column). Default=NONE (no line) |
LINE-STYLE | Column line style (SOLID, SQUARE-DOT, DASH, DASH-DOT, LONG-DASH, LONG-DASH-DOT,LONG-DASH-DOT-DOT). Default=SOLID |
LINE-THICKNESS | Thickness of the column line expressed in decipoints. Default=two decipoints |
POINT-SIZE | Point size of the font. Cannot specify a default value. |
UNDERLINE | YES | NO |
WIDTH | Width expressed in coordinate units. Cannot specify a default value |
WRAP | YES | NO | maximum number of lines |
WRAP-HEIGHT | Number of lines between each wrapped line. Default=one line |
WRAP-ON | Characters on which to force a WRAP. The default is not to force a WRAP |
ROW-ATTRIBUTES
Attributes to apply to rows.
Table 37. Row Attributes
Attribute | Description |
---|---|
BORDER-COLOR | Color name or RGB triplet. Default=NONE (no border) |
BORDER-LINE-STYLE | The border line style (SOLID, SQUARE-DOT, DASH, DASH-DOT, LONG-DASH, LONG-DASH-DOT, LONG-DASH-DOT-DOT). Default=SOLID |
BORDER-THICKNESS | Border thickness expressed in decipoints. Default=two decipoints |
FILL-COLOR | Fill color name or RGB triplet. Default=NONE |
HEIGHT | Number of lines between each printed row. Default=one line |
LINE-COLOR | Color name or RGB triplet. Default=NONE (no line) |
LINE-STYLE | Row line style (SOLID, SQUARE-DOT, DASH, DASH-DOT, LONG-DASH, LONG-DASH-DOT,LONG-DASH-DOT-DOT). Default=SOLID |
LINE-THICKNESS | Line thickness expressed in decipoints. Default=two decipoints |
TABLE-ATTRIBUTES
Attributes for the appearance of the table.
Table 38. Table Attributes
Attribute | Description |
---|---|
BORDER-COLOR | Color name or RGB triplet. Default=NONE (no border) |
BORDER-LINE-STYLE | The border line style (SOLID, SQUARE-DOT, DASH, DASH-DOT, LONG-DASH, LONG-DASH-DOT, LONG-DASH-DOT-DOT). Default=SOLID |
BORDER-THICKNESS | Border thickness expressed in decipoints. Default=two decipoints |
FILL-COLOR | Fill color name or RGB triplet. Default=NONE |
LEADING | Expressed in decipoints. Default=0 decipoints |
Use DECLARE-TABLE in the BEGIN-SETUP section to define a template for a table.
declare-table template4 column-count=3 column-attributes=(0,'line-color',('blue')) column-attributes=(2,'point-size',16,'font',4, 'bold','No','italic','yes','center','yes', 'fill-color',('red')) column-attributes=(3,'point-size',8,'font',300, 'bold','YES','italic','yes','center','yes') row-attributes=('line-color',('green'),'height',5) end-declare
ALTER-TABLE, CREATE-TABLE, DUMP-TABLE, FILL-TABLE, PRINT-TABLE,