
This method calculates the minimum required width of a column to ensure the entire text will appear.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_Grid_CalcColWidth MyControlReference [as Reference] sColText [as String]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_Grid_CalcColWidth ProjectFile [as String] DialogName [as String] ControlName [as String] sColText [as String]) |
Copy Code |
|---|
; Calculate the width to assign to a column (setq rValue (Odcl_Grid_CalcColWidth MyProject_MyForm_MyControl "Phone Number")) |
Grid_AddColumns, Grid_DeleteColumn, Grid_GetColumnCount, Grid_GetColumnImage, Grid_GetColumnItems, Grid_GetColWidth, Grid_SetColumnImage, Grid_SetColWidth, Grid_SortNumericItems, Grid_SortTextItems