LPARAMETERS cOutputName, nBuildAction, lRebuildAll, lShowErrors, lBuildNewGuids LOCAL loCurrentProject LOCAL lcOldALIAS LOCAL lnCounter loCurrentProject = APPLICATION.ActiveProject lcOldALIAS = ALIAS() WITH loCurrentProject WITH .Files SELECT 0 WAIT WINDOW "Looking for FRXs to scrub . . ." NOWAIT FOR lnCounter = 1 TO .Count WITH .Item(lnCounter) IF .Type = FILETYPE_REPORT WAIT WINDOW "Scrubbing FRXs . . ." NOWAIT USE (.Name) ALIAS ReportFRX lcExpr = "COPIES=1" lnOrientation = ATC("ORIENTATION", ReportFRX.Expr) IF lnOrientation > 0 lcExpr = lcExpr + ; dHardReturn + ; "ORIENTATION" + ; SUBSTR(ReportFRX.Expr, ; lnOrientation + 11, 02) ENDIF REPLACE ReportFRX.Expr WITH lcExpr, ; ReportFRX.TAG WITH dNULString, ; ReportFRX.TAG2 WITH dNULString USE IN ReportFRX ENDIF ENDWITH ENDFOR WAIT CLEAR ENDWITH ENDWITH IF NOT EMPTY(lcOldALIAS) SELECT (lcOldALIAS) ENDIF DODEFAULT(cOutputName, nBuildAction, lRebuildAll, lShowErrors, lBuildNewGuids)
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature