# CodeCop Hidden AA0241
Use all lowercase letters for reserved language keywords.
## Description
Use all lowercase letters for reserved language keywords. This rule does not apply to built-in methods and types; they must be written using Pascal case.
## Remarks
We recommend following these best practices when developing extensions in AL to ensure consistency and discoverability on file, object, and method naming, as well as better readability of written code.
Data types in variable and parameter declarations aren't included in this rule because they're written using Pascal case.
## Bad code example
```al
trigger OnValidate()
BEGIN
    IF "Order Date" > "Starting Date" THEN
       Error(Text007, FieldCaption("Order Date"), FieldCaption("Starting Date"));
END;

VAR
    Text007: Label '%1 cannot be greater than %2.';
```
## Good code example
```al
trigger OnValidate()
begin
    if "Order Date" > "Starting Date" then
       error(Text007, FieldCaption("Order Date"), FieldCaption("Starting Date"));
end;

var
    Text007: Label '%1 cannot be greater than %2.'; // Label variable declaration in Pascal case

```
## Good and bad practices for fixing the rule
Change every reserved language keyword to use lowercase letters. Use Pascal case for data types in variable and parameter declarations.
## Related information
CodeCop Analyzer<codecop>
Get Started with AL<../devenv-get-started>
Developing Extensions<../devenv-dev-overview>

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/analyzers/codecop-aa0241, 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/analyzers/codecop-aa0241/
