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.
Best regards.
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.
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] := ' ';