
This method will return the width of a column.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_Grid_GetColWidth MyControlReference [as Reference] nColIndex [as Integer]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_Grid_GetColWidth ProjectFile [as String] DialogName [as String] ControlName [as String] nColIndex [as Integer]) |
Copy Code |
|---|
; Get the width of the third column (setq rValue (Odcl_Grid_GetColWidth MyProject_MyForm_MyControl 2)) |
Grid_AddColumns, Grid_CalcColWidth, Grid_DeleteColumn, Grid_GetColumnCount, Grid_GetColumnImage, Grid_GetColumnItems, Grid_SetColumnImage, Grid_SetColWidth, Grid_SortNumericItems, Grid_SortTextItems