Link to home
Start Free TrialLog in
Avatar of styleress
styleress

asked on

Invalid Variant Type Conversion Error

Hi,
This is probably a really basic question, but I am new to delphi and can't figure out the cause of the following error message: Invalid Variant Type Conversion.

Any explanations would be appreciated??

Cheers
Avatar of CrazyOne
CrazyOne
Flag of United States of America image

Seeing the code where the problem happens would help.


The Crazy One
Avatar of styleress
styleress

ASKER

PickZoneDM.PickZoneQry.FieldByName('WWS_MAXLDVOL').AsFloat := null;  

Is there a problem with the conversion?
Should it be: AsFloat := 0;
Try this

PickZoneDM.PickZoneQry.FieldByName('WWS_MAXLDVOL').AsVariant:= null;  

or

PickZoneDM.PickZoneQry.FieldByName('WWS_MAXLDVOL').Clear;  

ASKER CERTIFIED SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, that done the trick!!
ehm, the grade deserves CrazyOne

CrazyOne, i post a q four you

meikl ;-)