Versions Compared

Key

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

...

...


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

...

TypeNameComment
STRINGmodelNamecomments
schemaName
name of EXPRESS schema where required enumeration is defined
STRINGrepositoryName 
enumTypeName
name of enumeration (TYPE ... = ENUMERATION OF)
STRINGaString
enumElementName
A string representation of the enumeration element

Return Value

...

 

TypeNameComment
GENERICenumerationenumeration element value

Options

...

 

Example

...

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

...