Επεξεργασία

Κοινή χρήση μέσω


AppSourceCop Warning AS0087

Translations of enum value captions must not contain commas

Description

Translations of enum value captions must not contain commas. Commas in captions will result in values with wrong captions both in the UI and potential unexpected results in connection with formatting and evaluating enums.

Remarks

This warning ensures that translations of enum value captions don't include commas, which can cause issues in the user interface and during the processing of enums. Commas can interfere with the correct display and handling of enum values, leading to misleading or incorrect information being shown to users. Additionally, commas can cause problems when enums are formatted or evaluated programmatically, potentially leading to unexpected behavior or errors.

How to fix this diagnostic?

To resolve this warning, follow these steps:

  1. Locate the enum value captions in your code that contain commas in their translations.
  2. Modify the translations to remove any commas from the captions.

AppSourceCop Analyzer
Get Started with AL
Developing Extensions