Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Total Value on a 2-band report
Message
De
15/12/2006 20:45:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01178103
Message ID:
01178231
Vues:
12
>>
>>I didn't work yet with multiple detail bands, so I may be way off-track.
>>
>>However, I have seen that conditionally adding a value often helps:
>>
>>The expression in the report variable might be iif(SomeCondition, 1, 0) if you want to count, or iif(SomeCondition, SomeValue, 0) if you want to sum.
>
>I tried your suggestion but so far I could not find what to use in the SomeCondition of the expression.
>
>Here is what I tried:
>
>
>iif( fsize("PO_AMOUNT")>0,PO_AMOUNT,0)
>
>
>The problem with above is it is always True. That is, when VFP prints each line and even when it prints a line of Detail 2 which does not have field PO_AMOUNT, VFP returns fsize("PO_AMOUNT") > 0 as True.

How about type() or vartype()?
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform