lookup value in enumeration

0
How do I check to see whether a string value exists in an enumeration? Do I have to loop through each value in the enumeration, which would mean creating a list of that enumeration first??
asked
2 answers
1

You can obtain the enumerations list through the MxModelReflection Module so that can do an xpath comparison on the MxObjectEnumValue entity.

answered
0

This might be a silly question, but why would you want that? An enumeration is predefined so why check if it has a string value in it?

I you want to check the caption i guess you could use the getCaption(<enum>) to get the caption of the enum and then check that caption vs a string.

answered