Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recalc report every time a Detail Band line is printed.
Message
 
À
18/06/1999 00:57:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00231182
Message ID:
00231409
Vues:
20
David,

Here's what I did. Create a report, in it place a field and then a second one the is below and to the right of the first. I created two variables in the command window, lcLastCust (last customer ID) and llNewCust (T/F is this a new customer).

I wrote the following UDF;
* ChkLastCust
lcRet = lcLastCust
IF Cust_id = lcLastCust
	llNewCust = .F.
ELSE
	llNewCust = .F.
ENDIF
lcLastCust = Customer.cust_id
RETURN lcRet
The expression for the second field is ChkLastCust(). In teh example above the UDF returns the name of the current customer.

If you run the report you will see the current customer's ID with the ID of the previous customer to the right of it.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform