*ColumnWidth()

Sets the width of a column(s) in a form or a tableform.

Syntax

*ColumnWidth(col_1,[col_2,],width)

Arguments

col_1
The column for which the width is set.
Data type: integer
col_2
An optional argument that specifies the end of a group of columns in which the field width is set, beginning with col_1 .
Data type: integer
width
The width of the column(s), measured in characters.
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

Columns are labeled 1 to n, left to right. In the example, all of the cells in the first (column one) and fourth (column four) columns are 20 characters wide.