* Implemented TNumericField.GetAsboolean

git-svn-id: trunk@11897 -
This commit is contained in:
joost 2008-10-14 09:08:31 +00:00
parent 5499e08c05
commit 422c45ce3e
2 changed files with 6 additions and 0 deletions

View File

@ -506,6 +506,7 @@ type
procedure RangeError(AValue, Min, Max: Double);
procedure SetDisplayFormat(const AValue: string);
procedure SetEditFormat(const AValue: string);
function GetAsBoolean: Boolean; override;
public
constructor Create(AOwner: TComponent); override;
published

View File

@ -1288,6 +1288,11 @@ begin
end;
end;
function TNumericField.GetAsBoolean: Boolean;
begin
Result:=GetAsInteger<>0;
end;
{ ---------------------------------------------------------------------
TLongintField
---------------------------------------------------------------------}