Enumeration

Hello.
Are there any way to use Enumeration like that?
Enumeration(TEnumMappingType.emChar, ' ,X')]

Because I have fields with this " " value, and I'd like to use Enumeration for those fields.

https://doc.tmssoftware.com/biz/aurelius/guide/mapping.html?q=Enumeration#enumeration

Best regards.

Aurelius performs some validations at load time that prevents you from using whitespaces like this.

But you can try workaround it by explicitly setting the value after the mapping is loaded:

type
  Enumeration(TEnumMappingType.emChar, 'Z,X')]
  TStatus = (None, Some);
...
  Manager.Explorer.FindEnumeration('TStatus').MappedValues[0] := ' ';

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.