![]() |
#1 |
Участник
|
mfp: X++ in AX7: Inline variable declarations
Источник: http://blogs.msdn.com/b/mfp/archive/...larations.aspx
============== What would you pay to be able to do this in X++? X++: for(int i = 1; i 0) { int positiveInt = i; } X++: if (applyInterestRate) { real rate = this.getInterestRate(); result = result * rate; } if (applyExchangeRate) { ExchangeRate rate = this.getExchangeRate(); result = result * rate.ExchangeRate; } ![]() Finally, we can:
Note: Whenever you consider using inline variable declarations – consider extracting the code into a smaller method instead. Here is why. THIS POST APPLIES TO MICROSOFT DYNAMICS AX7 TECHNICAL PREVIEW; IS PROVIDED AS-IS AND CONFERS NO RIGHTS. ============== Источник: http://blogs.msdn.com/b/mfp/archive/...larations.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. Последний раз редактировалось mazzy; 18.12.2015 в 17:17. |
|
|
За это сообщение автора поблагодарили: alex55 (1). |