Progress
Language Reference


ADD-CALC-COLUMN() Method

Creates a browse column from the specified properties and returns the widget-handle of the new column. This method can be used only after the browse’s query attribute has been set.

Return Type: WIDGET-HANDLE

Applies To: Browse

SYNTAX
ADD-CALC-COLUMN( datatype-exp , format-exp , initial-value-exp , label-exp     
[ , pos ] ) 

datatype-exp

Character expression specifying the data type ("CHAR", “DATE”, “DECIMAL”, “INTEGER” or “LOGICAL”)

format-exp

Character expression specifying the column’s format.

initial-value-exp

Character expression specifying the initial value. This may be a null string.

label-exp

Character expression specifying the column’s label.

pos

The optional integer value position of the browse column. If pos = 2, the column is the second column. If the position is not specified or the position is invalid, the new column is added at the end of the columns.

The following is an example of adding a column in the browse’s fifth position using this method:

CalcHnd5 = BrwsHndl:ADD-CALC-COLUMN("char", "AAA-99999", "ORD-37854",          
"OrdNum", 5). 

NOTES


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095