Function IdentifierType(identifierName)

IdentifierType

The function IdentifierType returns the type of identifierName as an element in AllIdentifierTypes.

IdentifierType(
     identifierName)       ! (input) scalar element parameter

Arguments

identifierName

An element expression in the predefined set AllIdentifiers specifying the identifier for which the type should be obtained.

Return Value

This function returns a type as an element in AllIdentifierTypes. If identifierName is not an identifier, an error message is issued.

Note

This function replaces the suffix .type; this suffix is deprecated.

Example

Given the declaration:

Parameter p_d  ;

the code:

1_ep_p := StringToElement(AllIdentifiers,
2    "chapterModel::sectionModelQuery::funcIdentifierType::p_d",
3    create: 0);
4_ep_type := IdentifierType( _ep_p );
5block where single_column_display := 1, listing_number_precision := 6 ;
6    display _ep_type ;
7endblock ;

produces in the listing file:

_ep_type := 'parameter' ;

References