xpfStringToEnumerationBN

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


TypeNameComment
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


 

TypeNameComment
GENERICenumerationenumeration element value

Options


 

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

There are no items with the selected labels at this time.