Label Data Type

Denotes a string constant that can be optionally translated into multiple languages.


All of the parameters below are optional and the order is not enforced.

Attribute Description
Comment It is used for general comments about the label, specifically about the placeholders in that label.
Locked When Locked is set to true, the label should not be translated. Default value is false.
MaxLength It determines how much of the label is used.
Label 'ALLOWED POSTING DATE', Comment='{MaxLength=30}';
If no maximum length is specified, the string can be any length.

Syntax example

    a : Label 'Label Text', Comment='Foo', MaxLength=999, Locked=true;


The Label data type is used in .xlf files for translations. For more information, see Working with Translation Files.

For information about naming, see CodeCop Rule AA0074.

See Also

Getting Started with AL
Developing Extensions