- Function IndexRange(indexName)
IndexRange
The function IndexRange returns the range of an index as an element
in AllIdentifiers.
IndexRange(
indexName ! (input) scalar element parameter
)
Arguments
- indexName
An element expression in the predefined set
AllIdentifiersspecifying the index for which the range should be returned.
Return Value
This function returns the range of index
indexNameas an element inAllIdentifiers. IfindexNameis not an index or if it does not have a range the empty element is returned.
Example
With the declarations
Set MasterSet {
Index : a;
}
Index b {
Range : MasterSet;
}
Index c;
The output of the statements
put "IndexRange( 'a' ) = \"", IndexRange( 'a' ):10, "\"", / ;
put "IndexRange( 'b' ) = \"", IndexRange( 'b' ):10, "\"", / ;
put "IndexRange( 'c' ) = \"", IndexRange( 'c' ):10, "\"", / ;
is:
IndexRange( 'a' ) = "MasterSet "
IndexRange( 'b' ) = "MasterSet "
IndexRange( 'c' ) = " "
See also
The functions
DeclaredSubsetandDomainIndex.