Showing posts with label variables in dynamics ax 7. Show all posts
Showing posts with label variables in dynamics ax 7. Show all posts

Sunday, 31 January 2016

Inline variable declaration in New Dynamics Ax 7

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

Inline variable declaration in New Dynamics Ax 7

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