11

The AL compiler notes that if I assign e.g. Text Value to Enum, that this is not possible. For MyTable.Validate(Option, 'Text'); I the error message:


Argument 2: cannot convert from 'Text' to the type of Argument 1 'Enum "My Enum"


It would be nice if the AL compiler would recordnize then same if I use the same text when getting the record. For MyTable.Get('VALUE', 'Text'); I get no error.


Full example: https://pastebin.com/4Yr9tgxT

Category: Development
STATUS DETAILS
New
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team