- Function me::ChangeTypeAllowed(runtimeId, newType)
me::ChangeTypeAllowed
The function me::ChangeTypeAllowed
returns 1 if the type of runtime
identifier runtimeId
can be changed into type newType
.
me::ChangeTypeAllowed(
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 identifier
runtimeId
can be changed intonewType
. WhenruntimeId
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:
_bp_changeTypeAllowed := me::ChangeTypeAllowed( ep_functionReferenceExampleRuntimeParameter, 'quantity' );
display _bp_changeTypeAllowed ;
produces in the listing file:
_bp_changeTypeAllowed := 0 ;
Illustrating that a parameter cannot be changed into a quantity.
References
IdentifierTYpe
.
Generic references for model edit functions can be found on the index page