Subject Re: [IBO] Variant method calls not supported Exception
Author Jason Wharton
I've no idea what could be the trouble. But, obviously the value is NULL so
that should be taken into consideration. It used to be that I was more
sloppy with variants but now (as of a few months at least) I handle variants
exactly as they should be.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Damian Dowling" <damian-dowling@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, May 29, 2002 8:33 AM
Subject: [IBO] Variant method calls not supported Exception


> Hi
>
> I am getting the following exception:
>
> "Variant method calls not supported"
>
> when i call the following:
>
> // CName is a string
> // Query is TIB_Query
>
> CName := Query.FieldValues['Name'].AsString;
>
>
> the following works:
>
> CName := VarToStr(Query.FieldValues['NAME']);
>
>
> Any ideas as to why AsString is not working?
>
> Delphi 6 Pro
> IBO 4.2.Hc
>
> Regards
>
>
> Damian Dowling
> IT Manager
> Pallas Foods Ltd
>
> Phone: + 353 69 20200
> Fax: + 353 69 20201
> Email: damian-dowling@...