Subject Variant method calls not supported Exception
Author Damian Dowling
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@...