ADD-INDEX-FIELD() method
- Last Updated: January 22, 2026
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
After you use
ADD-NEW-INDEX(), you invoke the ADD-INDEX-FIELD() method once for each field in the new index. You pass the
name of the index, the name of the field to add, and an optional third argument that
evaluates to asc for ascending (the default) or desc
for descending:
|
If there are multiple fields in the index, the order in which you invoke
ADD-INDEX-FIELD() for the fields determines their order within the
index.
This example adds a new unique index called
SeqIndex to the temp-table
and adds the Sequence field to it:
|