Language Reference Guide : 4. System Classes : MatrixField Class : Rows Attribute
 
Share this page                  
Rows Attribute
Data Type: integer
4GL Access: RW
The Rows attribute defines the number of rows in the matrix field. The Rows attribute is reset whenever OpenROAD removes an empty row from the matrix field. OpenROAD removes empty rows from a matrix field if its CollapsePolicy attribute is set to either CP_BOTH or CP_ROWS. (For more information, see CollapsePolicy Attribute.)
If the CollapsePolicy attribute setting is CP_NONE or CP_COLUMNS, you can create empty rows in the matrix field by setting the Rows attribute to a number higher than the number of occupied rows in the matrix field. For example, if your matrix field has three occupied rows, and its CollapsePolicy attribute is set to CP_NONE, you can set the Rows attribute to five, to create two empty rows.
You cannot set the Rows attribute to a number lower than the number of occupied rows in the matrix field.