Progress
Language Reference
ADD-LIKE-COLUMN( ) Method
Creates a browse column from the specified field and returns its widget handle. This method can be used only after the browse’s query attribute has been set.
Return Type: WIDGET-HANDLE Applies To: Browse
field-name-exp
The name of a field in one of the buffers associated with the browse’s query. If the query is a join, the name must be qualified with the database name.
buffer-field-hndl
The widget-handle of a buffer-field from a buffer associated with the browse’s query.
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 the customer number field to the browse:
NOTES
- The ADD-LIKE-COLUMN( ) method may be used on a static browse as well as on a dynamic browse. When used on a static browse, the browse will become a NO-ASSIGN browse (the 4GL programmer must do the database updates.)
- A dynamic browse column’s validation expression is restricted. It may not contain a CAN-FIND function. To reference the field, the FRAME-VALUE function must be used.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |