Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data type mismatch
Message
From
26/08/2004 10:29:09
 
 
To
26/08/2004 10:24:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00936467
Message ID:
00936601
Views:
34
The zero at the end of the iff() is a problem...and I think that if either price or catchweight are wide enough to carry the result, there will be no problem with the middle portion of the iif().

>VFP tries to guess the width of the fields, so you must give VFP a clue.Try this
>select iif(a.split_in="Y",1000000.000*a.price*a.catchweight,0)as T
>
>>this is beginning to look better using
>>select iif(a.split_in="Y",a.price*a.catchweight,0)as T
>>
>>but the result of the column is an asterik not price*catchweight.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform