mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 13:49:15 +02:00
* Implemented TNumericField.GetAsboolean
git-svn-id: trunk@11897 -
This commit is contained in:
parent
5499e08c05
commit
422c45ce3e
@ -506,6 +506,7 @@ type
|
|||||||
procedure RangeError(AValue, Min, Max: Double);
|
procedure RangeError(AValue, Min, Max: Double);
|
||||||
procedure SetDisplayFormat(const AValue: string);
|
procedure SetDisplayFormat(const AValue: string);
|
||||||
procedure SetEditFormat(const AValue: string);
|
procedure SetEditFormat(const AValue: string);
|
||||||
|
function GetAsBoolean: Boolean; override;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
published
|
published
|
||||||
|
@ -1288,6 +1288,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TNumericField.GetAsBoolean: Boolean;
|
||||||
|
begin
|
||||||
|
Result:=GetAsInteger<>0;
|
||||||
|
end;
|
||||||
|
|
||||||
{ ---------------------------------------------------------------------
|
{ ---------------------------------------------------------------------
|
||||||
TLongintField
|
TLongintField
|
||||||
---------------------------------------------------------------------}
|
---------------------------------------------------------------------}
|
||||||
|
Loading…
Reference in New Issue
Block a user