- Function me::GetAttribute(runtimeId, attr)
me::GetAttribute
The function me::GetAttribute
returns the contents of an attribute
as a string.
me::GetAttribute(
runtimeId, ! (input) an element
attr ! (input) an element
)
Arguments
- runtimeId
An element in the set
AllIdentifiers
referencing a runtime identifier.- attr
An element in the set
AllAttributeNames
Return Value
Returns the contents of the attribute
attr
of runtime identifierruntimeId
as a string. WhenruntimeId
doesn’t reference a runtime identifier an error will be raised.
Example
Viewing a small runtime library defined as:
LibraryModule FunctionReferenceExampleRuntimeLibrary {
Prefix: frerl;
DeclarationSection runtime_declaration_identifiers {
Parameter p_a;
}
Procedure runtimeProc {
Body: {
display p_a;
}
}
}
Then the code:
_sp_body := me::GetAttribute(ep_functionReferenceExampleRuntimeProc,'body');
display _sp_body ;
produces the following in the listing file:
_sp_body := "display p_a;\n" ;
References
Generic references for model edit functions can be found on the index page