- Function me::ChangeType(runtimeId, newType)
me::ChangeType
The procedure me::ChangeType
changes the type of a runtime
identifier.
me::ChangeType(
runtimeId, ! (input) an element
newType ! (input) an element
)
Arguments
- runtimeId
An element in the set
AllIdentifiers
referencing a runtime identifier.- newType
An element in the set
AllIdentifierTypes
.
Return Value
Returns 1 if the change type operation is successful, 0 otherwise. In the latter case error(s) have been raised. When
runtimeId
doesn’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_functionReferenceExampleRuntimeParameter
have value frerl::p_a
,
then the code:
me::ChangeType(
runtimeId : ep_functionReferenceExampleRuntimeParameter,
newType : 'string parameter');
Changes that library to the following:

Illustrating the type change of runtime identifier frerl::p_a
from parameter
to string parameter
.
References
Generic references for model edit functions can be found on the index page