No, and to be perfectly honest I can't think of a reason to use Setvar() pretty much anywhere from *inside* VFP. It's intended for use when automating VFP from *outside*.
When you say "in the footer of a group" are you talking about a report?
Why not spell out what you're trying to do, instead of how, and you'll no doubt get no end of suggestions.
Sorry, I was referring to a group on a report. I was trying to sum several columns, like an invoice total that would be incorrect when the report includes all of the detail invoice records and therefore would add the invoice total many times in a calculated sum in a group footer band. I have re-worked my report variables to give me the correct sums.
FWIW, I've handled the kind of task you're talking about with a pair of report variables. One tracks the group and one tracks the total. I wrote about it in the March '04 issue of FoxPro Advisor, so if you have that, you can take a look.
LOL, thanks Tamar, that is exactly where I got the work-around. I found a reference to it online, but I have the advisor copy too. You've probably answered that question a thousand times.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.