Single-Element Functions : List of Functions : stm_r_xx_displayed_name

stm_r_xx_displayed_name
Returns the name of a chart, as it appears in the graphic editor where the specified element is located.
You can call this function without indicating the specific element type, as follows:

stm_r_displayed_name (id, status)

Function type: STRING

For elements

 
Syntax
stm_r_xx_displayed_name (xx_id, status)
Arguments
Status Codes

stm_success

stm_id_not_found

stm_id_out_of_range

stm_error_in_file

stm_illegal_parameter

stm_file_not_found

stm_missing_name

stm_missing_field

Example
To retrieve the name of the chart as it appears in the title bar of the graphic editor (for example, FUNC PROC EXAMPLE) and write it to the document, use the following statements:

VARIABLE
STATE state_id;
INTEGER status;
.
.
.
state_id := stm_r_st (’S1.S3’, status);
WRITE (stm_r_st_displayed_name (state_id, status));
.
.
.

If this function does not meet your needs, there are two other name functions that return different values:

stm_r_xx_name

stm_r_xx_uniquename