Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use MAX() in a calculated field?
Message
From
25/01/2007 21:24:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Stonefield
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01189404
Message ID:
01189443
Views:
8
>>
>>You didn't accidentally multiply or divide, instead of subtracting?
>>
>
>No.
>
>>Also check the field width in the report, and the numeric format, e.g. "###" will show asterisks if you have four digits.
>
>I have no choice to specify how many digits to be printed in the column. Just the width of the column. But the values are very small (no more than 4 digits). And in fact when I was using simple DATE_FLD1 - DATE_FLD2 as an expression the number were showing without any problem. It is when I get the DATE_FLD1 - DATE_FLD2 from within IIF() the number are super large. Strange ...

How about a cast().
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform