[Lazarus] Difference between Delphi 2010 / Lazarus

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri Dec 14 10:51:48 CET 2012



On Fri, 14 Dec 2012, Kostas Michalopoulos wrote:

> What does "Calculated" do?

Judging from the Delphi code, it is no longer used. 
The GetCalculated returns

function TField.GetCalculated: Boolean;
begin
   Result := FFieldKind = fkCalculated;
end;

And setcalculated does:

procedure TField.SetCalculated(Value: Boolean);
begin
   if Value then
     FieldKind := fkCalculated
   else if FieldKind = fkCalculated then
     FieldKind := fkData;
end;

So it can safely be ignored.

Michael.




More information about the Lazarus mailing list