Progress
Language Reference
ADD-LIKE-FIELD( ) Method
This method adds the specified field-name in the temp-table LIKE the specified source field.
This method cannot be called after TEMP-TABLE-PREPARE( ) has been called unless CLEAR( ) is called first.
Return Type: LOGICAL Applies To: Temp-table Object Handle
field-name-exp
A character expression that evaluates to the name of the field to be created in the temp-table.
source-buffer-field-hndl-exp
A character expression that evaluates to a buffer-field handle from which to copy the field.
source-db-field-name-exp
A character expression that evaluates to a database field name from which to copy the field. The table name must be qualified with the database name.
The following example fragments add a field to a temp-table, the first from a named source and the second from a buffer-field handle source:
NOTE: There is a limit to the number of fields that can be accommodated in a temp-table object. The limit depends on how large the field information (initial value, validate information, help messages, etc.) is, but you should plan on a limit of 500 fields.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |