[Lazarus] Can't create calculated field
Krzysztof
dibo20 at wp.pl
Sun Dec 30 15:26:20 CET 2012
Hi,
I have this code:
f := TField.Create(FDataList);
f.FieldName := 'calc';
f.FieldKind := fkCalculated;
f.SetFieldType(ftBoolean);
f.DataSet := SQLQuery1.FieldDefs.Dataset;
procedure TForm1.OnCalc(DataSet: TDataSet);
begin
SQLQuery1.FieldByName('calc').AsBoolean := true;
end;
But I get error "Invalid type conversion to Boolean in field calc"
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121230/13e1cf93/attachment-0002.html>
More information about the Lazarus
mailing list