Edit

Pragma directives and actions in AL

APPLIES TO: Business Central 2020 release wave 2 and later

Supported pragma directives

The #pragma directive gives the compiler special instructions for the compilation of the file in which it appears. AL supports two pragma instructions. #pragma warning supports the disable and restore actions. #pragma implicitwith supports the enable, disable, and restore actions.

AL supports the following pragma instructions:

Development in AL
AL development environment
Region directive in AL
Conditional directives
Deprecating explicit and implicit with statements