I totally forgot about that one, sorry. Mistakenly I was looking for a TMS/Aurelius related unit.
That being said then GetEnumName in TypInfo will not get the TEnumMappingType string as far as I know.
Here's an enum that better demonstrates my question:
Having this Enum:
[Enumeration(TEnumMappingType.emString, '1A,2B,3C')]
TEnumTest = (oneA, twoB, threeC);
With the above enum and using GetEnumName:
var lEnum := TEnumTest.twoB;
ShowMessage(GetEnumName(TypeInfo(TEnumTest), integer(LEnum)));
ShowMessage will display 'twoB'
So I guess my question is if there is a method that can get me the '2B' string instead of 'twoB' ?