Creates a browse column from the specified properties and returns the handle of the new column. This method can be used only after the browse's query attribute has been set.
Return type: HANDLE
Applies to: BROWSE widget
ADD-CALC-COLUMN ( datatype-exp , format-exp , initial-value-exp , label-exp [ , pos [ , widget-type]] ) |
If datatype-exp is not "LOGICAL", specifying "TOGGLE-BOX" as the widget type generates a run-time error.
The widget-type parameter is ignored in character mode.
The following is an example of adding a column in the browse's fifth position using this method:
The ADD-CALC-COLUMN( ) method may be used on a static browse as well as on a dynamic browse.
If the browse is already displayed, the REFRESH( ) method should be applied to the browse after columns are added using ADD-CALC-COLUMN( ). This will initially populate the viewport for the calculated column. The ROW-DISPLAY trigger would normally populate the column, but when ADD-CALC-COLUMN is being executed, the ABL calc-column handle is not yet set and, thus, cannot initially populate it.