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.
Advertisements
Categories: General
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: