Subject | Re: Error converting variant into double... Delphi XE + IBO 4.9.12 |
---|---|
Author | tecchiotiago |
Post date | 2011-01-06T10:27:09Z |
--- In IBObjects@yahoogroups.com, "tecchiotiago" <tiagotecchio@...> wrote:
>and of course, I'm using TIBOQuery...
> 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));
>