Previous Next

ADD-LIKE-FIELD( ) method
Adds a field, like the specified source field, to the temp-table.
This method cannot be called after TEMP-TABLE-PREPARE( ) has been called unless CLEAR( ) is called first.
Return type:
Applies to:
 
Syntax 
ADD-LIKE-FIELD ( field-name-exp ,
  source-buffer-field-handle-exp | source-db-field-name-exp )
field-name-exp
A character expression that evaluates to the name of the field to be created in the temp-table.
source-buffer-field-handle-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:
 
tth:ADD-LIKE-FIELD("ordno","Order.OrderNum").
 
tth:ADD-LIKE-FIELD(bfh:NAME, bfh).
Note:

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.