# Caption Property
> Version: _Available or changed with runtime version 1.0._
Sets the string that is used to identify a control or other object in the user interface.
## Applies to
 Table
 Table field
 Page Field
 Field Group
 Page
 Request Page
 Page Label
 Page Group
 Page Part
 Page System Part
 Page Action
 Page Action Separator
 Page Action Group
 Xml Port
 Report
 Query
 Query Column
 Query Filter
 Enum Value
 Page Custom Action
 Page System Action
 Page File Upload Action
 Page View
 Page Analysis View
 Report Column
 Report Layout
 Profile
 Enum Type
 Permission Set
## Parameters
The property has three optional parameters; Locked, Comment, and MaxLength.
Locked
Type: ../methods-auto/boolean/boolean-data-type
If true the Caption is locked and should not be translated.
Comment
Type: ../methods-auto/text/text-data-type
Descriptive text for the Caption, for example, with regards to translation.
MaxLength
Type: ../methods-auto/integer/integer-data-type
Sets the maximum length of the specific Caption.
## Syntax
```al
Caption = 'Name';
```
Or, with parameters:
```al
Caption = 'Name', Locked = true, Comment = 'Keep like this, do not translate.', MaxLength = 20;
```
## Remarks
A caption is the text used to show the identity of a control. For example, in the caption bar of a page or a label for another control.
> NOTE
> For query columns, when you run the query from Object Designer, the About This Query window that opens in the RoleTailored client displays the value for the Name Property<devenv-properties> of the query column, not the Caption property or CaptionML Property.
## Related information
devenv-showcaption-property
../devenv-work-with-translation-files

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-caption-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-caption-property/
