DECLARE-TABLE

Function

Defines a template for a table.

Syntax

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})]

Arguments

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

AttributeDescription
BACKGROUNDBackground color name or RGB triplet. Default=NONE
BOLDYES | NO
CENTERYES | NO
FILL-COLORFill color name or RGB triplet. Default=NONE
FONTFont number. Cannot specify a default value
FOREGROUNDForeground color name or RGB triplet. Default=BLACK
ITALICYES | NO
LEADINGExpressed in decipoints
LINE-COLORColor name or RGB triplet of column line (line after column). Default=NONE (no line)
LINE-STYLEColumn line style (SOLID, SQUARE-DOT, DASH, DASH-DOT, LONG-DASH, LONG-DASH-DOT,LONG-DASH-DOT-DOT). Default=SOLID
LINE-THICKNESSThickness of the column line expressed in decipoints. Default=two decipoints
POINT-SIZEPoint size of the font. Cannot specify a default value.
UNDERLINEYES | NO
WIDTHWidth expressed in coordinate units. Cannot specify a default value
WRAPYES | NO | maximum number of lines
WRAP-HEIGHTNumber of lines between each wrapped line. Default=one line
WRAP-ONCharacters 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

AttributeDescription
BORDER-COLORColor name or RGB triplet. Default=NONE (no border)
BORDER-LINE-STYLEThe border line style (SOLID, SQUARE-DOT, DASH, DASH-DOT, LONG-DASH, LONG-DASH-DOT, LONG-DASH-DOT-DOT). Default=SOLID
BORDER-THICKNESSBorder thickness expressed in decipoints. Default=two decipoints
FILL-COLORFill color name or RGB triplet. Default=NONE
HEIGHTNumber of lines between each printed row. Default=one line
LINE-COLORColor name or RGB triplet. Default=NONE (no line)
LINE-STYLERow line style (SOLID, SQUARE-DOT, DASH, DASH-DOT, LONG-DASH, LONG-DASH-DOT,LONG-DASH-DOT-DOT). Default=SOLID
LINE-THICKNESSLine thickness expressed in decipoints. Default=two decipoints

TABLE-ATTRIBUTES

Attributes for the appearance of the table.

Table 38. Table Attributes

AttributeDescription
BORDER-COLORColor name or RGB triplet. Default=NONE (no border)
BORDER-LINE-STYLEThe border line style (SOLID, SQUARE-DOT, DASH, DASH-DOT, LONG-DASH, LONG-DASH-DOT, LONG-DASH-DOT-DOT). Default=SOLID
BORDER-THICKNESSBorder thickness expressed in decipoints. Default=two decipoints
FILL-COLORFill color name or RGB triplet. Default=NONE
LEADINGExpressed in decipoints. Default=0 decipoints

Description

Use DECLARE-TABLE in the BEGIN-SETUP section to define a template for a table.

Example

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

See Also

ALTER-TABLE, CREATE-TABLE, DUMP-TABLE, FILL-TABLE, PRINT-TABLE,