Utility Functions : List of Utility Functions : stm_list_create_ids_list

stm_list_create_ids_list
Creates a list of items using their IDs. The number of arguments varies according to the number of elements to be included in the list. The list is terminated by the predefined constant end_of_id_list.
Function Type
stm_list
Syntax
stm_list_create_ids_list (item1, item2..., end_of_id_list, &status)
Arguments
Input/Output
Status Codes
Example
To create a list that contains the activity named A2 and the state S8, retrieve their IDs from the database and create the list using the following statements:

 

stm_id ac_id, st_id;
int status;
stm_list list;
.
.
ac_id = stm_r_ac ("A2", &status);
st_id = stm_r_st ("S8", &status);
list = stm_list_create_ids_list (st_id, ac_id, end_of_id_list,
&status);
.
.