Subject RE: [ib-support] variant types - OT
Author Bill Morrison
While this is off topic, here's the answer.

What you are doing is having Delphi cast EDAXPos.Value into an integer. This
will work if EDAXPos.Value is some value like 10, or 15, etc. However, if
the variant contains a value like 'Hi! I am a value!', Delphi will have no
way to convert that to an integer, and will throw that exception.

HTH


Bill Morrison
NAVCO

-----Original Message-----
From: Daniel Bertin [mailto:bertin@...]
Sent: Monday, March 04, 2002 8:12 PM
To: ib-support@yahoogroups.com
Subject: [ib-support] variant types


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



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



To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/