>>I dislike report variables, they are calculated over and over in a very slow way. On 80 this is extra a problem since the report is run over and over while navigating in preiew.
>>If ever I see a chance I do it offline to the report. Sometimes I use SET RELATION, sometimes I do huge cursors with all the data. Depends mostly if there is a additional export of those data.
>
>For this particular problem we can only manipulate the report itself. In our application we allow clients to define their report layouts. There are certain functions they can use in the report, I think. May be that trick can be achieved with some pre-defined function.
Do you have control about the place where REPORT FORM is called? You might run your code there.
Anyway BeforOpenTables of a report should work. Don't miss to select your base cursor in the end of it.
Afterclosetables to clean up and tha'ts it.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]