編輯

共用方式為


Label Data type

Version: Available or changed with runtime version 1.0.

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

Parameters

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

Attribute Description
Comment 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 Determines how much of the label is used.
`
If no maximum length is specified, the string can be any length.

Syntax example

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

Remarks

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.

Get Started with AL
Developing Extensions