- Function IdentifierElementRange(identifierName)
IdentifierElementRange
The function IdentifierElementRange
returns the range as a set.
IdentifierElementRange(
identifierName) ! (input) scalar element parameter
Arguments
- identifierName
An element expression in the predefined set
AllSymbols
specifying the identifier for which the range should be obtained.
Return Value
This function returns the set, as an element in
AllSymbols
, that is the range ofidentifierName
if it is element valued. IfidentifierName
is not an identifier, an error message is issued. IfidentifierName
is not element valued, the empty element is returned without further warning.
Example
Given the declaration:
Set s_a;
ElementParameter ep_d {
Range: s_a;
}
the code:
1 _ep_p := StringToElement(AllIdentifiers,
2 "chapterModel::sectionModelQuery::funcIdentifierElementRange::ep_d",
3 create: 0);
4 _ep_s := IdentifierElementRange( _ep_p );
5 block where single_column_display := 1, listing_number_precision := 6 ;
6 display _ep_s ;
7 endblock ;
produces in the listing file:
_ep_s := 'chapterModel::sectionModelQuery::funcIdentifierElementRange::s_a' ;
References
The functions
DomainIndex
,IdentifierDimension
, andIndexRange
.Working with the Set AllIdentifiers of the Language Reference.
The common example in Listing 1.