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
field-name-exp
datatype-exp
extent-exp
format-exp
initial-exp
label-exp
column-label-exp
An optional character expression that evaluates to the label of the column associated with the defined field. If you do not specify a value, or you pass the Unknown value (?
),column-label-exp
defaults to the value of thelabel-exp
parameter (or thefield-name-exp
parameter, if thelabel-exp
parameter is not specified).The following example fragment adds a new character field called “abfield” which is initialized to “abc” to a temp-table:
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
|