*SetRowsCols()

Sets the number of rows and columns in a form or a tableform.

Syntax

*SetRowsCols(rows, columns)

Arguments

rows
The number of rows in the form.
Data type: integer
columns
The number of columns in the form.
Data type: integer

Example

*DefineForm(frmdef_vehpar, ds)
 
*SetRowsCols(6, 5)
 *RowHeight(1, 2)
 *ColumnWidth(1, 20)
 *ColumnWidth(2, 7)
 *ColumnWidth(3, 4)
 *ColumnWidth(4, 20)
 *ColumnWidth(5, 7)
 *ColumnLabel(1, "Properties")
 *ColumnLabel(2, "Values")
 *ColumnLabel(4, "Properties")
 *ColumnLabel(5, "Values")
 *MergeCells(1, 3, 6, 3)
 *SetCell(2, 1, ds.wb.label, , Left, No_Edit)
 *SetCell(3, 1, ds.cf.label, , Left, No_Edit)
 *SetCell(4, 1, ds.br.label, , Left, No_Edit)
 *SetCell(5, 1, ds.tr.label, , Left, No_Edit)
 *SetCell(6, 1, ds.ar.label, , Left, No_Edit)
*EndDefine()

Context

*DefineForm()

*DefineTableForm()

Comments

When used in a *DefineTableForm() block, a *SetRowsCols() statement specifies the number of rows and columns in one record. The number of rows is multiplied with the number of records to display all the records of the table.

The arguments cannot be expressions and the statement cannot be inside of an "if" block. Exactly one *SetRowsCols() should be included per *DefineForm() or *DefineTableForm() block.