PreviousNextIndex

ADD-LIKE-COLUMN( ) method

Creates a browse column from the specified field and returns its handle. This method can be used only after the browse’s query attribute has been set.

Return type: HANDLE

Applies to: BROWSE widget

Syntax
ADD-LIKE-COLUMN( field-name-exp | buffer-field-handle  
[ , pos [ , widget-type ] ] ) 

field-name-exp
buffer-field-handle
pos
widget-type

The ADD-LIKE-COLUMN( ) method can be used on a static browse as well as 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.

The following is an example of adding the Customer number field to the browse:

ColHdl = BrwsHndl:ADD-LIKE-COLUMN("Customer.CustNum"). 


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex