Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 53207

Inline variable declaration in New Dynamics Ax (aka ax 7).

$
0
0

Now in Dynamics Ax 7, now developer can declare variable/object where they need it. Instead ax 2012, where variable  declaration is only possible in very beginning of method or function.

For ( int counter =0; counter < 10; counter++)

{

 

If ( counter >10)

{

Int value= counter+10;

}

Else

{

Real percentage = (counter  *20) /100;

}

}

That’s good: Its ease to developer to declare variable where he needs.

That’s bad : it will disorganize the code, Its look better as in Ax 2012 that variables will declare in separate section. It was better to search reference of class object or table buffer


Viewing all articles
Browse latest Browse all 53207

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>