Subject Re: Error converting variant into double... Delphi XE + IBO 4.9.12
Author tecchiotiago
--- In IBObjects@yahoogroups.com, "tecchiotiago" <tiagotecchio@...> wrote:
>
> Hello!
> I got an error when passing a value to a parameter ("Could not convert variant of type (UnicodeString) into type (Double)").
> The exception is raised from TIB_Column.SetAsVariant procedure in IB_Components.pas (line 42795).
> To create this situation, just try to pass a string to a date parameter:
>
> myQuery.paramByName('mydate').AsString := DateToStr(IncDay(Now,5));
>

and of course, I'm using TIBOQuery...