Function type:
STRING
Assume you have a list of stringsS1
,S2
,S3
, andS4
assigned to the variablestr_list
. You locate the stringS1
by callingstm_str_list_first_element
.S1
becomes the current item. Your template should contain the following statements:VARIABLE
LIST OF STRING str_list;
STRING str;
INTEGER status;
.
.
str = stm_str_list_first_element (str_list, status);
WRITE (’\n The first string in the list is: ’, str);
str = stm_str_list_next_element (str_list, status);
WRITE (’\n The second string in the list is: ’, str);
.
.