FILL-TABLE

Function

Manipulates table attributes.

Syntax

FILL-TABLE
NAME=table_name_var|_lit|_col
VALUE=value_var|_lit|_col
LOCATION=(row_var|_lit|_col, column_var|_lit[,length_var|_lit])
[ATTRIBUTES=({keyword1},{value1}, ..., {keywordn},{valuen})]

Arguments

NAME

Name of the table created by CREATE-TABLE.

VALUE

Value to insert into the table.

LOCATION

Where to place the data in the table. The row and column elements define where to place the data. The length element, expressed in coordinate units, temporarily overrides the width of the column and allows data to span multiple columns.

ATTRIBUTES

Attributes to apply to the specified location. If an attribute is not specified, the current value as defined by CREATE-TABLE and ALTER-TABLE is used.

Table 41. FILL-TABLE Attributes

AttributeDescription
ANNOTATIONArbitrary text string associated with the specified location. SQR passes the data to the backend printer driver–it does not validate the data.
BACKGROUNDBackground color name or RGB triplet
BOLDYES | NO
CENTERYES | NO
COLUMN-LEADINGExpressed in decipoints
COLUMN-LINE-COLORColor name or RGB triplet
COLUMN-LINE-STYLESOLID | SQUARE-DOT | DASH | DASH-DOT | LONG-DASH | LONG-DASH-DOT | LONG-DASH-DOT-DOT
COLUMN-LINE-THICKNESSExpressed in decipoints
EDIT-MASKEdit mask or keyword to use
FILL-COLORFill color name or RGB triplet. Default=NONE
FONTFont number
FOREGROUNDForeground color name or RGB triplet
FORMULAEArbitrary formula associated with the specified location. SQR passes the data to the backend printer driver – it does not validate the data.
ITALICYES | NO
POINT-SIZEPoint size of the font
ROW-LINE-COLORColor name or RGB triplet
ROW-LINE-STYLESOLID | SQUARE-DOT | DASH | DASH-DOT | LONG-DASH | LONG-DASH-DOT | LONG-DASH-DOT-DOT
ROW-LINE-THICKNESSExpressed in decipoints
UNDERLINEYES | NO
URLSpecifies the hypertext link for the specified location. SQR does not validate the address.
URL-TARGETSpecifies the target within the URL. SQR does not validate the target.
WRAPYES | NO | maximum number of lines
WRAP-HEIGHTExpressed as the number of lines between each wrapped line.
WRAP-ONCharacters on which to force a WRAP
WRAP-STRIPCharacters to change to a space before the WRAP is done

Description

Use FILL-TABLE in any section except BEGIN-SETUP, BEGIN-SQL, and BEGIN-DOCUMENT to manipulate table attributes.

Example

fill-table
    name='tab2'
    value=$column1
    location=(3,2)
    attributes=('column-line-color',('green'),'row-line-color',
      ('black'),'font',5)

See Also

ALTER-TABLE, CREATE-TABLE, DECLARE-TABLE, DUMP-TABLE, PRINT-TABLE