mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-21 12:13:12 +02:00
fcl-db: base: allow TField.Clear also for calculated (and lookup) fields. Bug #25174
git-svn-id: trunk@30703 -
This commit is contained in:
parent
1b9e1eb1d8
commit
c3e542c7ef
@ -416,8 +416,7 @@ end;
|
||||
procedure TField.Clear;
|
||||
|
||||
begin
|
||||
if FieldKind in [fkData, fkInternalCalc] then
|
||||
SetData(Nil);
|
||||
SetData(Nil);
|
||||
end;
|
||||
|
||||
procedure TField.DataChanged;
|
||||
@ -1507,7 +1506,6 @@ begin
|
||||
end;
|
||||
|
||||
procedure TLongintField.SetAsInteger(AValue: Longint);
|
||||
var Min, Max: Longint;
|
||||
begin
|
||||
If CheckRange(AValue) then
|
||||
SetData(@AValue)
|
||||
|
Loading…
Reference in New Issue
Block a user