Release 10.1A: OpenEdge Development:
Progress 4GL 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 widget

> Syntax
>     ADD-LIKE-COLUMN( field-name-exp | buffer-field-hndl [ , pos ] )

> ``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:

>     ColHdl = BrwsHndl:ADD-LIKE-COLUMN("customer.cust-num").

> #### 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 (you must make 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 © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095