TFMTBCDField constructor

TFMTBCDField([
  1. TComponent? aOwner
])

Implementation

TFMTBCDField([super.aOwner]) {
  _maxValue = 0;
  _minValue = 0;
  validChars = {
    decimalSeparator,
    "+",
    "-",
    "0",
    "1",
    "2",
    "3",
    "4",
    "5",
    "6",
    "7",
    "8",
    "9"
  };
  setDataType(TFieldType.ftFMTBcd);
  // Max.precision for NUMERIC,DECIMAL datatypes supported by some
  // databases: Firebird-18; Oracle,SqlServer-38; MySQL-65;
  // PostgreSQL-1000 (original comment kept as-is)
  precision = 18; // default number of digits
  size = 4; // default number of digits after decimal place
}