- Function me::Parent(runtimeId)
me::Parent
The function me::Parent returns the parent of a runtime identifier.
me::Parent(
runtimeId ! (input) an element
)
Arguments
- runtimeId
An element in the set
AllIdentifiersreferencing a runtime identifier.
Return Value
The function returns an element in the set
AllIdentifiersreferencing the parent of the referenced identifier or the empty element if the referenced identifier is a runtime library. WhenruntimeIddoesn’t reference a runtime identifier an error will be raised.
Example
Viewing a small runtime library with prefix frerl in the model explorer:
Let
ep_functionReferenceExampleRuntimeLibrefer to the root of the runtime library, andep_functionReferenceExampleRuntimeProcrefer to a procedure inside the library, then the code:
_ep_parent := me::Parent( ep_functionReferenceExampleRuntimeProc );
display _ep_parent ;
produces the following in the listing file:
_ep_parent := 'FunctionReferenceExampleRuntimeLibrary' ;
See also
Generic references for model edit functions can be found on the index page.