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