Language Reference Guide : System Classes : MatrixField Class : CollapsePolicy Attribute
 
Share this page          
CollapsePolicy Attribute
Data Type: integer
4GL Access: RW
The CollapsePolicy attribute specifies how OpenROAD automatically adjusts the matrix field when an empty row or column occurs.
Valid settings are:
CP_NONE
Specifies that empty rows and columns are allowed and maintained. If you set the Rows and Columns attributes, the settings are enforced.
CP_ROWS
Specifies that empty rows are removed automatically, as soon as the last field in the row is removed. Setting the Rows attribute has no effect. However, empty columns are maintained, and you can set the Columns attribute.
CP_COLUMNS
Specifies that empty columns are removed automatically, as soon as the last field in the column is removed. Setting the Columns attribute has no effect. However, empty rows are maintained, and you can set the Rows attribute.
CP_BOTH
Specifies that empty rows and columns are removed automatically, as soon as the last field is removed from the row or column. Setting the Rows or Columns attribute has no effect.
Descriptions of system constant values and their numeric equivalents are listed in CollapsePolicy Settings for MatrixFields.