>Hello,
>
>What is the purpose of running expressions on entry on exit on Details, Page Footer, Summary, etc.
These give you a change to extend the report writer. You can use a simple expression or call a method or UDF. For example, if you want to count the number of Data Groups processed in a report you can do this ....
- Create a report variable called nGroups, set the value to zero, set the calculate option to SUM.
- In the OnExit Expression of the Data Group Footer, use this: _VFP.SetVar('nGroups', nGroups+1)
Now you can use nGroups in the Report Summary band to print the total number of groups processed.
You can even get more complicated by calling a UDF or method that switches to another cursor, finds some records, sets some variables, totals up some values, etc. Just remember to switch back to the cursor that drives the report before leaving the UDF or method.