浏览代码

+ Initialized ValidChars and Precision in FloatField

git-svn-id: trunk@120 -
michael 20 年之前
父节点
当前提交
48c968edf6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fcl/db/fields.inc

+ 2 - 0
fcl/db/fields.inc

@@ -1408,6 +1408,8 @@ constructor TFloatField.Create(AOwner: TComponent);
 begin
 begin
   Inherited Create(AOwner);
   Inherited Create(AOwner);
   SetDatatype(ftfloat);
   SetDatatype(ftfloat);
+  FPrecision:=15;
+  FValidChars := [DecimalSeparator, '+', '-', '0'..'9', 'E', 'e'];
 end;
 end;
 
 
 Function TFloatField.CheckRange(AValue : Double) : Boolean;
 Function TFloatField.CheckRange(AValue : Double) : Boolean;