O'Reilly logo

Inside Microsoft Dynamics® AX 2009, Second Edition by Satish Thomas, Deepak Kumar, Tomasz Kaminski, Hans Jorgen Skovgaard, Michael Fruergaard Pontoppidan, Lars Dragheim Olsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix C. Source Code Changes Required for Upgrade

When you upgrade to Microsoft Dynamics AX 2009 from an earlier version, you must make changes to the source code to ensure that the internal references comply with the new best practices. These changes include code changes, metadata changes, and table modifications, as described in the following sections.

Code Changes

For fields of the int64 data type assigned to a 32-bit integer value, the assigned-to variable must be rewritten as a variable of the same type, or explicitly cast to an int value. For example,

int RecId = table.RecId;

must be rewritten like this:

RecId RecId = table.RecId;

When a variable that derives from int64 is used as an index to an array, the code must be refactored to use a map. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required