ADD-NEW-FIELD() method
- Last Updated: December 5, 2025
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
If you want to add one or more fields to a temp-table definition that are not derived from a
specific other database or temp-table field name, use the ADD-NEW-FIELD() method:
|
The first argument is the field name in the temp-table. The second is its data type.
These two arguments are required. You can also define other attributes optionally, in
this order:
- The extent of the field, if it has one
- The format of the field
- The field’s initial value
- The field’s label
- The field’s column-label
Note:
ADD-NEW-FIELD() does not support all of the
field options available in the DEFINE TEMP-TABLE statement.Because these arguments are position-dependent, you must include values for any
intervening arguments you don’t specify. You don’t need to include commas or values for
optional arguments following the last one you specify. For example, this statement adds
an integer field called
Sequence to the temp-table, with a format of
"9999" and an initial value of 1000:
|