ADD-NEW-INDEX( ) methodAdds a new empty index with the specified name to the temp-table. Index components must be added with the ADD-INDEX-FIELD( ) method.This method cannot be called after TEMP-TABLE-PREPARE( ) has been called unless CLEAR( ) is called first.
Return type:
Applies to:
ADD-NEW-INDEX ( index-name-exp , unique-exp , primary-exp, wordix-exp )The following example fragment adds to a temp-table a new unique primary index field with two components, the first ascending, the second descending:
tth:ADD-FIELDS-FROM("Customer", "SalesRep").tth:ADD-NEW-INDEX("abidx", TRUE, TRUE).tth:ADD-INDEX-FIELD("abidx", "abfield1").tth:ADD-INDEX-FIELD("abidx", "abfield2", "desc")....
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |