Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.1 KB

File metadata and controls

28 lines (23 loc) · 1.1 KB
title description ms.author ms.date ms.topic author ms.reviewer
CodeCop Warning AA0021
Variable declarations should be ordered by type.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

CodeCop Warning AA0021

Variable declarations should be ordered by type.

Description

Variable declarations should be ordered by type. In general, object and complex variable types are listed first followed by simple variables.

Remarks

Object and complex variable types must be listed first, and then simple variables. The order is: Record, Report, Codeunit, XmlPort, Page, Query, Notification, BigText, DateFormula, RecordId, RecordRef, FieldRef, and FilterPageBuilder. The rest of the variables are not sorted.

See Also

CodeCop Analyzer
Get Started with AL
Developing Extensions