GetElementName

Given an element in an aggregate object, this function returns its name.

Description

Return the name of an element in an aggregate object, without the name of the object’s name prepended.

Type

STRING

Arguments

Type

Meaning

1

OBJECT

the element of an aggregate object (e.g., a WaterUser within an AggDiversionSite) whose name is to be returned.

Evaluation

The function returns the name of the element object.

Comments

This function returns only the name of the element itself, without the name of the parent aggregate object. If the full name is desired, then one may use the built-in RPL operation STRINGIFY.

If the object argument is not an element of an aggregate object, then the run is aborted with an error.

 
GetElementname(% "Below Abiquiu Diversions:Chamita")
 
"Chamita"