Condividi tramite


Naming Conventions: Underscores

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

The underscore character ('_') can be used in the following situations.

  • When naming formal parameters, it should be used as the first character. Warning icon

  • In the DEL_ prefix.

  • Subclasses can have the same name as their parent class, postfixed with a logical name that describes the subclass specialization. The name of the parent class might have to be shortened. In this case, use an underscore between the shortened parent class name, and the rest of the name. For example: InventUpd_Financial, InventUpd_Physical.

  • In an application object that is specialized for a specific country/region, the name is postfixed with underscore and the country/region code. For example: TaxReport_BE, LedgerJournalizeTrans_ES.

Do not use an underscore in the following situations:

  • Beginning of an application object name.

  • First character of a variable name in class declarations or methods. Warning icon

  • End of a variable name in class declarations or methods.

See also

Naming Conventions

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.