Subject Re: [ib-support] variant types
Author Bob Lazarchik
> Hi all,
> Is there special treatment to give variant types with FB/IB? Delphi manual
> says it can assign no problem. But when I execute this code,
>
> DataM.AxlesAXPOS.AsInteger := EDAxPos.Value;
>
> I get an error "Invalid Variant type conversion".
>
> Does anyone have a suggestion on how I should handle this?
> Thanks
> Daniel
>

Daniel:

I had this type of problem in a COM server. My problem was that if the
Variant value was greater than
255 I go the error. I didn't have any time to investigate why this happened
but it worked when I converted the variant to a string then the string to
integer.

Bob Lazarchik
Semiconductor Diagnostics.