PreviousNextIndex

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

Applies to: Temp-table object handle

Syntax
ADD-LIKE-FIELD( field-name-exp , 
      source-buffer-field-handle-exp | source-db-field-name-exp ) 

field-name-exp
source-buffer-field-handle-exp
source-db-field-name-exp

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: 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 approximately 1,000 fields.

OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex