*MergeCells()
Merges a block of form or a tableform cells into a single cell.
Syntax
*MergeCells(row_1,col_1,row_2,col_2)
Arguments
- row_1
- Row number of the starting cell from which to merge.
- col_1
- Column number of the starting cell from which to merge.
- row_2
- Row number of the ending cell to which to merge.
- col_2
- Column number of the ending cell to which to merge.
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
Comments
When used in a *DefineTableForm() block, the specified cells are merged in every record of the table form.