Subject Re: [IBO] AsInt64
Author Hans Hoogstraat
Thank you Nando,

That compiled.

I found out that

IBOQuery.ParamByName('name').AsString := IntToStr(Generator.value);

also works and maybe a little less overhead since that is the format
it is sent to the server in the first place.

Best regards
Hans

----- Original Message -----
From: "Nando Dessena" <nandod@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, May 28, 2004 10:04 PM
Subject: Re: [IBO] AsInt64


> Hans,
>
> H> IBOQuery.ParamByName('name').AsInt64 := Generator.value doesn't compile
> H> anymore in IBO4.Aa
>
> H> Any ideas ?
>
> Yes. That must be because of the fix that brought TIB_Column out of
> the equation. The code above should have never worked, since TParam
> doesn't have an AsInt64 property. Instead, it deals with int64 through
> AsVariant, so:
>
> IBOQuery.ParamByName('name').AsVariant := Generator.value
>
> should compile and work fine. BTW, which version of Delphi do you
> have? I seem to remember problems with int64 params in older versions.
>
> Ciao
> --
> Nando Dessena
> mailto:nandod@...
>
>
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
> Yahoo! Groups Links
>
>
>
>