Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use MAX() in a calculated field?
Message
 
 
To
26/01/2007 09:23:18
General information
Forum:
Visual FoxPro
Category:
Stonefield
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01189404
Message ID:
01189566
Views:
10
>>>>>
>>>>>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().
>>
>>The same result, a bunch of asterisks. Thank you.
>
>Do you have any .Null. values?

No.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform