AutoFormatExpression, AutoFormatType vs DecimalPlaces

Kratos3064Kratos3064 Member Posts: 14
Hi, I want to know what is the difference between these two? And what example situations can AutoFormatExpression, AutoFormatType be applied?

Best Answer

Answers

  • Kratos3064Kratos3064 Member Posts: 14
    vaprog wrote: »
    Hi,

    AutoFormat... properties allow you to control presentation from a triggers in Codeunit 1 (AutoFormatTranslate). It not only allows you to change the presentation of many similar fields at once, but also allows you to control it from data and it allows you to change presentation based on parameters.

    e.g. amounts show the number of digits after the decimal point based on the currency code and settings in the general ledger setup.

    The two properties are not alternatives. Rather AutoFormatExpression is intended to be used as a parameter to functions determined by AutoFormatType. The function then returns a format in the same form as used by the Format property.

    (The current implementation does not actually use separate functions but rather sections in a CASE statement.)

    Thank you, I understand it now.
Sign In or Register to comment.