...
...
Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpfStringToEnumerationBN (modelNameschemaName : STRING; repositoryNameenumTypeName : STRING; aString enumElementName : STRING) enumeration : GENERIC; |
This function returns enumeration element value. The value of the given STRING is placed within the given target enumeration instance.
Arguments
...
Type | Name | Comment | |
STRING | modelName | commentsschemaName | name of EXPRESS schema where required enumeration is defined |
STRING | repositoryName | enumTypeName | name of enumeration (TYPE ... = ENUMERATION OF) |
STRING | aStringenumElementName | A string representation of the enumeration element |
Return Value
...
Type | Name | Comment |
GENERIC | enumeration | enumeration element value |
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
<Missing Example>-- in EXPRESS schema TYPE model_type = ENUMERATION OF( analysis, design, program, project, product, part, document); END_TYPE; -- in XPX code enum_element := xpfStringToEnumerationBN(xpxTargetModelID.EDM_Model.Schema.Name, 'model_type', 'product'); |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|
...