Home > General > AX2009 – Best Practice Check for Classes

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 :

  1. Make sure Class has a construct method , the standard one that is present for all AX Classes.
  2. 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.
  3. 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
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment