ChangeTray("MyReport",3) && Change to Tray 3 report form ("MyReport") previewWhen control returns to my calling program, its data environment is empty, giving me messages like “No table is open in the current work area.” My calling form uses a private data session, and my report uses a private data session. The metacode for ChangeTray looks like
parameters tcReportName, tnTray use (tcReportName + '.frx') go top * Put tcReportName.Expr content into the array aLines * Find the “DEFAULTSOURCE=” line in aLines and change it to new tray # * Replace tcReportName.Expr with modified content use returnI am using the simple SET REPORTBEHAVIOR 80