AnyDAC
ContentsIndexHome
PreviousUpNext
TADFormatOptions.FmtDisplayNumeric Property

Specifies display format for numeric fields.

Group
Links

Use the FmtDisplayNumeric property to specify DisplayFormat property for TNumericField descendants (ftInteger, ftLongWord, ftSmallint, ftShortint, ftByte, ftLargeint, ftWord, ftAutoInc, ftFloat, ftSingle, ftCurrency, ftExtended, ftBCD, ftFmtBCD) dataset fields. 

The option will be applied only to default fields or to persistent fields at the create time only. For format details see TNumericField.DisplayFormat.

property FmtDisplayNumeric: String;
ADQuery1.FormatOptions.FmtDisplayNumeric := '#,##0.';
What do you think about this topic? Send feedback!