PreviousNextIndex

ADD-NEW-FIELD( ) method

Adds a field with the specified properties to the temp-table. Additional properties can be manipulated by creating a buffer-field object for this 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

Syntax
ADD-NEW-FIELD( field-name-exp , datatype-exp [ , extent-exp [ , format-exp     
[ , initial-exp [ , label-exp [ , column-label-exp ] ] ] ] ] ) 

field-name-exp
datatype-exp
extent-exp
format-exp
initial-exp
label-exp
column-label-exp

The following example fragment adds a new character field called “abfield” which is initialized to “abc” to a temp-table:

tth:ADD-NEW-FIELD("abfield","char",0,,"abc"). 

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