Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you macrocubstitute on a Report?
Message
From
30/06/2000 12:20:57
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00387100
Message ID:
00387144
Views:
18
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform