Re: invalid class typecast
- From: "Viatcheslav V. Vassiliev" <support@xxxxxxxxxxxxxxx>
- Date: Mon, 25 Apr 2005 15:30:21 +0400
> li := qry2.FieldByName('REFNO') as TLargeIntField; //EXCEPTIO is here
var
str: string;
str := qry.FieldByname('REFNO').ClassName;
You will see what is this field.
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"yc" <yc@xxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:426cc59b$1@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> 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
.
- Follow-Ups:
- Re: invalid class typecast
- From: yc
- Re: invalid class typecast
- References:
- invalid class typecast
- From: yc
- invalid class typecast
- Prev by Date: Re: invalid class typecast
- Next by Date: Re: Insert, Update and Delete with Join Tables
- Previous by thread: Re: invalid class typecast
- Next by thread: Re: invalid class typecast
- Index(es):
Relevant Pages
|