Multiple Variable Declarations of the Same Type in the Same Line

Hello Reader, 

Hope you all are doing well. 

Merry Christmas in Advance. 


In this blog, we will see how we can declare the same type of variable in a same line, using a
comma to separate variable names

 

For Example:

I have declared 4 Integer type of variable as a global in AL Extension. 

Before Business Central 17 (2020 Wave 2).

 

In Business Central 17 (2020 Wave 2) 

you can define the variable together with the comma separator as below:

 

Thank you,

Anish Agrawal

NAV/Business Central Developer

Connect me on : +91-9770757595

Linkedin :Anish Agrawal

 

Leave a Reply

Your email address will not be published. Required fields are marked *