Codeunit "Auto Format"
ID 45
Namespace: System.Text
Exposes functionality to format the appearance of decimal data types in fields of a table, report, or page.
Properties
| Name | Value |
|---|---|
| Access | Public |
| SingleInstance | True |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
ResolveAutoFormat
Formats the appearance of decimal data types. Use this method if you need to format decimals for text message in the same way how system formats decimals in fields.
procedure ResolveAutoFormat(AutoFormatType: Enum "Auto Format", AutoFormatExpr: Text[80]): Text[80]
Parameters
| Name | Type | Description |
|---|---|---|
| AutoFormatType | Enum System.Text."Auto Format" |
A value that determines how data is formatted. The values that are available are "0" and "11". Use "0" to ignore the value that AutoFormatExpr passes and use the standard format for decimals instead. Use "11" to apply a specific format in AutoFormatExpr without additional transformation. |
| AutoFormatExpr | Text[80] |
An expression that specifies how to format data. |
Returns
| Type | Description |
|---|---|
| Text[80] |
The resolved expression that defines data formatting |
ReadRounding
Gets the default rounding precision.
procedure ReadRounding(): Decimal
Returns
| Type | Description |
|---|---|
| Decimal |
Returns the rounding precision. |