Progress
Language Reference


ADD-COLUMNS-FROM( ) Method

Creates a browse column for each field found in the specified buffer or table. If a field is found that already has a corresponding browse-column created, it is ignored. This method can be used only after the browse’s query attribute has been set.

Return Type: LOGICAL

Applies To: Browse

SYNTAX
ADD-COLUMNS-FROM( buffer-hndl | table-name-exp [ , except-list ] ) 

buffer-hndl

The widget handle of a buffer associated with the browse’s query.

table-name-exp

The name of a table associated with the browse’s query.

except-list

An expression that evaluates to a comma-separated list of field names to be excluded from the browse. No extra spaces should be included between names.

The following is an example of adding browse columns from the Invoice table, excluding the fields, Amount and Total-Paid:

DEFINE VARIABLE ExcList AS CHARACTER INITIAL "Amount,Total-Paid".
... 
AddCol = BrwsHndl:ADD-COLUMNS-FROM("invoice", ExcList). 

NOTES


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