- 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
AllIdentifiersreferencing a runtime identifier.- newType
An element in the set
AllIdentifierTypes.
Return Value
Returns 1 if the identifier
runtimeIdcan be changed intonewType. 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_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.
See also
IdentifierTYpe.Generic references for model edit functions can be found on the index page.