Barbara,
You mean in the .Init of the .DataEnvironment? I tried that. After I previewed a report (without printing) my variable had been incremented twice. And I just this minute figured out why. Look at the code I found in the .Destroy method (it ain't mine).
*- [CONVERTER] Reset tables for compatibility
THIS.OpenTables
THIS.Init
Apparently this was placed in report after being converted from a previous version of FoxPro. I remmed it out, but sending the report to the printer didn't fire .Init from the preview mode a second time. If it had, we'd know that the user had clicked the print button. Sigh.
Oh well, everyone have a nice weekend.
George
>What about putting the variable change in the Report INIT? That's only executed once....
>
>Barbara
>
George
Ubi caritas et amor, deus ibi est