...
Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpfStringToEnumerationBN (schemaName : STRING;
enumTypeName : STRING;
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 | schemaName | name of EXPRESS schema where required enumeration is defined |
STRING | enumTypeName | name of enumeration (TYPE ... = ENUMERATION OF) |
STRING | enumElementName | string representation of the enumeration element |
Return Value
...
Type | Name | Comment |
GENERIC | enumeration | enumeration element value |
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
-- 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) | ||||||
---|---|---|---|---|---|---|
|