Function type:
LIST OF STRING
The list of strings to be sorted Assume you generated a list of attributes for the stateWAIT
using single-element functions. This list is assigned to the variableattr_list
. To sort the list items and write them to your document, use the following statements:VARIABLE
STRING item;
LIST OF STRING attr_list, ord_attr_list;
INTEGER status;
.
.
WRITE (’\n WAIT’s attributes are:’);
ord_attr_list := stm_list_sort (attr_list, status);
FOR item IN ord_attr_list LOOP
WRITE (’\n ’, item);
END LOOP;