Error Unknown Type : 14
In the TFrxDBDataSet.DoGetValue procedure some kind of fields raise this error.
They are definitly in the Resultset. Others are displayed without any Problems.
There is an opened TADODataSet and this is linked to an TFrxDBDataSet.
Any idea whats wrong ?
EDIT:
Via the frxReport.GetValue function the values are shown without any Problem.
VarName = <TADODataset-Name>:<FieldName>.
They are definitly in the Resultset. Others are displayed without any Problems.
There is an opened TADODataSet and this is linked to an TFrxDBDataSet.
Any idea whats wrong ?
EDIT:
Via the frxReport.GetValue function the values are shown without any Problem.
VarName = <TADODataset-Name>:<FieldName>.
Comments
Maybe is this an big Bug or does anyone use an TBetterAODDataset or TADODataset resultset with an TFrxDBDataSet without any Problems.
And, which surprise, with this memory table the report works. So there is definitly an bug with TADODatasets and retrieving values from fields.
Unit : frxClass.pas
function TfrxReport.DoGetValue(const Expr: String; var Value: Variant): Boolean;
...
GetDataSetAndField(Expr, ds, fld);
if (ds <> nil) and (fld <> '') then
begin
Value := ds.Value[fld];
if FEngineOptions.ConvertNulls and (Value = Null) then
...
...
if FEngineOptions.ConvertNulls and (Value = Null) then
raises sometimes in the ( Value = Null ) condition an Exception.
On changing this to
if FEngineOptions.ConvertNulls and ( VarType( Value ) = 0 ) then
all workes fine, all all data are shown.
VarIsNull(Value)