Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use MAX() in a calculated field?
Message
De
26/01/2007 09:30:10
 
 
À
26/01/2007 09:23:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Stonefield
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01189404
Message ID:
01189566
Vues:
11
>>>>>
>>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform