Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Code Block
languagecpp
themeConfluence
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

...

Code Block
languagecpp
-- 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)
showLabelsfalse
showSpacefalse
cqllabel = "extension_schema" and parent = "5636522"