> I want to save a description from the greoup header and use it again in the group footer.
>
> Something like:
> Cash Accounts <- Group header
> account
> account
> Total - Cash Accounts <- Group footer
>
> I want to save the value 'Cash Accounts' into a variable so I can use it in the footer.
> It seems when I try and assign it anywhere that VFP is intrepreting the equal(=) as a comparison and not assignment operator.
>
> Also I tried to define variables in the init:
> Public cLevel1 as character
>
> but when I go to use it it VFP sees the variable is logical!
>
> Any suggestions would be appreciated.As Borislav suggests, you can use a field from the table driving the report for this. I'm assuming you have a group by expression on this field, and are using the field in the group header. If that's the case, using the same field in the footer will work just fine.
-BP
www.peisch.com