Subject Re: [IBO] Re: Error converting variant into double... Delphi XE + IBO 4.9.12
Author Marcelo Bortolini
Tiago use so:

*myQuery.paramByName('mydate').AsString := QuotedStr(
DateToStr(IncDay(Now,5)));*


2011/1/24 tecchiotiago <tiagotecchio@...>

>
>
> Any idea about this situation?
>
>
> > > 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...
> >
>
>
>



--
Marcelo Bortolini


[Non-text portions of this message have been removed]