AX2009 – Best Practice Check for Classes
During my current Project , while doing code review we found the following Best practice for Classes .These BP checkswill be useful in othe Project so I will include a list here :
- Make sure Class has a construct method , the standard one that is present for all AX Classes.
- Do not write to variables passed in a Class method as Parameter. Typically values passed in parameter are for read purpose and writing to those variables is not recommeded and gives a BP Deviation warning.
- All the label Ids used in X++ code should be enclosed in double quotes as specifying them in single quotes is a BP Deviation warning.
Categories: General
Comments (0)
Trackbacks (0)
Leave a comment
Trackback