Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you macrocubstitute on a Report?
Message
De
30/06/2000 12:20:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00387100
Message ID:
00387144
Vues:
16
>Evaluate does same as MacSub.

Except that & can fire VFP commands too, where Eval() can only evaluate an expression that includes literals, fields, variables and VFP functions.

I use Eval() in reports all the time, depending on what the user choose to sort by, and if he wants to subtotal on that expression, the subheading is passed to the report as an unevaluated expression in a string, example:

"'Total Timed Hours for ' + trim(fname) + trim(lname) + ' Emp#' + tran(empno)"

Then, I this in a field on the report:

Eval(SubHeading)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform