General information
Category:
Reports & Report designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only