stm_r_longdes (id, filename, status)
The name of the file that will contain the long description
●
The
filename
follows the conventions of the host operating system.
●
This function returns the value of the argument
filename
when one is specified. If an empty string’’
(two contiguous quotation marks) is specified, Statemate creates a temporary file where it stores the text. The name of this temporary file is returned by the function.
●
If no long description exists for the element,
status
receives the valuestm_missing_long_description
.To retrieve the long description for the activityA1,
use the following statements:VARIABLE
ACTIVITY act_id;
STRING long_des_file;
INTEGER status;
.
.
act_id := stm_r_ac (’A1’,status);
long_des_file:=
stm_r_ac_longdes(act_id,’text.txt’,status);
.
.The long description for activityA1
is written to the filetext.txt
. This file resides in the current working directory. The variablelong_des_file
contains the string‘text.txt
’.