Page 1 of 1

[solved] Firebird 2.1 + Delphi2010 = EVariantTypeCastError

Posted: 08.01.2013, 11:00
by louis
Hi,
In lookup Field, if LookupKeyFields Field Type differs of LookupResultField Field Type I have the error in subject (in the test project: TSmallIntField vs TWideStringField).

If Field Type are the same (TWideStringField vs TWideStringField), no errors occur!

I attack a test project.

There a solution?

Zeos version is 7.0.3-stable

Thanks

Posted: 08.01.2013, 22:24
by EgonHugeist
louis,

i'll have a look right now... I'll post again if i can fix your reported issue. Hope we've the same behavior with FB2.5 (;

Posted: 10.01.2013, 17:36
by louis
Forgive me, forgive me, :oops: :oops: :oops:
Everything works fine! :oops: :oops: :oops:

I really wrong to create the TLookupField. (in the test project I created "ztb1lkModo" as type TSmallintField instead was created type TWideStringField!). :cry:

Forgive me again, I was wrong as a rookie. :oops: :oops: :oops:

Posted: 12.01.2013, 20:46
by EgonHugeist
louis,

well relsoved (((: No problem, i had a quick look but i've fixed other things before...