yc
2005-04-25 10:25:31 UTC
Hi,
I'am trying to use TLargeIntField, it is giving me a headache.
I've two Access tables tbl1 and tbl2 (qry1 and qry2).
Using TLargeIntField field type as follows, I get an invalid class typecast exception.
var
li : TLargeIntField;
begin
with qry1 do
begin
Close;
li := qry2.FieldByName('REFNO') as TLargeIntField; //EXCEPTIO is here
Parameters.ParamByName('REFNO').Value := li.Value;
Open;
end;
end;
Any idea ?
Thanks in advance
yc
I'am trying to use TLargeIntField, it is giving me a headache.
I've two Access tables tbl1 and tbl2 (qry1 and qry2).
Using TLargeIntField field type as follows, I get an invalid class typecast exception.
var
li : TLargeIntField;
begin
with qry1 do
begin
Close;
li := qry2.FieldByName('REFNO') as TLargeIntField; //EXCEPTIO is here
Parameters.ParamByName('REFNO').Value := li.Value;
Open;
end;
end;
Any idea ?
Thanks in advance
yc