ALTER-TABLE

Function

Manipulates table attributes.

Syntax

ALTER—TABLE
NAME=table_name_var|_lit|_col
ACTION=action_lit
[COUNT=count_var|_lit|_col]
[ROW=row_var|_lit|_col]
[ATTRIBUTES=({keyword1},{value1}, ..., {keywordn},{valuen})]

Arguments

NAME

Name of the table created by CREATE-TABLE.

ACTION

Action to perform on thee table.

COUNT

Number of affected rows.

ROW

The insertion row.

ATTRIBUTES

Attributes to apply to the row.

Table 14. ALTER-TABLE Attributes

AttributeDescription
DEFAULTCauses all attributes to be set to their default values as defined by DECLARE-TABLE and CREATE-TABLE before applying any other attributes.
BACKGROUNDBackground color name or RGB triplet
BOLDYES | NO
CENTERYES | NO
COLUMN-LEADINGExpressed in decipoints
COLUMN-LINE COLORColor name or RGB triplet
COLUMN-LINE-THICKNESSExpressed in decipoints
COLUMN-LINE-STYLESOLID | SQUARE-DOT | DASH | DASH-DOT | LONG-DASH | LONG-DASH-DOT | LONG-DASH-DOT-DOT
HEADERYES | NO
FILL-COLORFill color name or RGB triplet. Default=NONE
FONTFont number
FOOTERYES | NO
FOREGROUNDForeground color name or RGB triplet
GROUP-HEADERYES | NO
GROUP-FOOTERYES | NO
ITALICYES | NO
POINT-SIZEPoint size of the font
ROW-BORDER-COLORColor name or RGB triplet
ROW-BORDER-LINE-STYLESOLID | SQUARE-DOT | DASH | DASH-DOT | LONG-DASH | LONG-DASH-DOT | LONG-DASH-DOT-DOT
ROW-BORDER-THICKNESSExpressed in decipoints
ROW-LINE-COLORColor name or RGB triple
ROW-LINE-STYLESOLID | SQUARE-DOT | DASH | DASH-DOT | LONG-DASH | LONG-DASH-DOT | LONG-DASH-DOT-DOT
ROW-LINE-THICKNESSExpressed in decipoints
UNDERLINEYES | NO
WRAPYES | NO | maximum number of lines
WRAP-HEIGHTNumber 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 ALTER-TABLE in any section except BEGIN-SETUP, BEGIN-SQL, and BEGIN-DOCUMENT to manipulate table objects.

Example

alter-table name='customers' action='attributes' count=1 row=1
    attributes=('foreground',('green'),'background',('red'),
       'center','no','italic','yes','row-border-color','black',
       'row-border-thickness',4,'fill-color','yellow','point-size',8,
       'bold','yes')

See Also

CREATE-TABLE, DECLARE-TABLE, DUMP-TABLE, FILL-TABLE, PRINT-TABLE