+ Initialized ValidChars and Precision in FloatField

git-svn-id: trunk@120 -
This commit is contained in:
michael 2005-05-26 06:46:54 +00:00
parent 792d252aa3
commit 48c968edf6

View File

@ -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;