Versions Compared

Key

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

http://edmserver.epmtech.jotne.com/EDMAssist2/desktop/Volume_VI__EDMexpressX_Language/Language_Reference/EDMexpressX_built-in_Operations/xpf-Functions/xpfStringToEnumeration.htm

represent the following description: xpfStringToEnumeration (modelId: GENERIC; aString: STRING)  enumeration : GENERIC;

with explanation: To be completed (smile)... The xpfStringToEnumeration function converts the specified string to an aggregate

Actually xpfStringToEnumeration (1) does not convert to string to an aggregate, but returns enumeration element value and (2) expects not id of target model, but id of target enumeration, that could be received in call to xpfGetDefinedType, like the following:

...

Code Block
languagecpp
themeConfluence
FUNCTION xpfStringToEnumeration (enumId     : GENERIC;
                                 aString     : STRING)
                                 enumeration : GENERIC;
                

This function returns enumeration element value. The value of the given STRING is placed within the given target enumeration instance.                                    

Arguments

...

 

Insert excerpt
US:_a_enumId
US:_a_enumId
nopaneltrue
Insert excerpt
US:_a_String
US:_a_String
nopaneltrue

Return Value

...

 

Insert excerpt
US:_r_enumVal
US:_r_enumVal
nopaneltrue

Options

...

 

 

Example

...

Code Block
enum_id := xpfGetDefinedType(XPXTARGETMODELID, enum_name);

...


enum_element := xpfStringToEnumeration(enum_id, enum_element_name); 

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "conversion" and parent = "5636522"