To extract an entire record of all textual information for an activity, and then use the individual fields in subsequent calls, use the following code:
stm_id act_id;
stm_ac_text_ptr act_textual;
stm_description act_desc;
stm_short_name act_syn;
int status;
.
.
.
act_id = stm_r_ac ("AAA.A1", &status);
act_textual= stm_r_ac_text (act_id, &status);
act_syn = act_textual->ac_synonym;
act_desc = act_textual->ac_short_des;Note the difference between this example and the first example. In Example 1, single functions are used for each type of information; here, the whole record is extracted and the information from each field is used later.