Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot determine datatype
Message
 
 
To
09/11/2005 14:20:15
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066914
Message ID:
01066924
Views:
14
>The iif() function (below)fails with .null. set as the result of the true condition, but works fine from the command window.
>
>I can replace the .null. with a number and it works fine.
>SELECT	ALL;
>        quotes.mdesc                   AS QMDESC,;
>        wip.manovrde                   AS WMANOVRDE,;
>        produtn.prodno                 AS PPRODNO,;
>
>        iif(val(wip.wtr9)=0,.null.,val(wip.wtr9)) AS WWTR9,;
>This is in the FoxFire Report Writer. I need all the 0's to appear as nulls in order to calculate averages accurately.

Dale,

Try
iif(val(wip.wtr9)=0, VAL(null),val(wip.wtr9)) AS WWTR9,;
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform