Applies to: ABC template chain with the ABCFree template set, posted in the Clarion 5.5 group (a reply mentions a 5507 release).
Problem
Dropping the ProcessQuietTakeNoRecords template into a process procedure gave a compile error: "Syntax error: Invalid use of PRIVATE data."
Solution
- Remove the
,PRIVATEattribute onOpenFailedin ABREPORT.INC. That fixes the compile error. - Alternative from the same reply, by guess: enter
POST(Event:CloseWindow); RETURNbeforePARENT.TakeNoRecords()inThisWindow.TakeNoRecords(). - Without the template: a
RETURNin the window object's TakeNoRecords embed returns before the "No Records to Process" message. The poster did exactly that, though he wanted to just drop the template in. - The ABCFree set also has a ReportQuietTakeNoRecords template that works on both reports and processes. It does not override TakeNoRecords, because that touches the private data; it changes the "fatality" of the error so the message does not show. The poster said he would try it.
Caveats
- The replier was not sure whether his edited ABREPORT.CLW (error message commented out) was his own change or the shipped one, so editing shipped ABC files may be unneeded.
- A plain RETURN before the parent call can skip the OpenFailed flag; see FAQ-2266 in this hub.
- Nobody reported the result of the ReportQuiet variant.
Today (2026)
Not re-tested; the ABCFree templates are third-party and the ABC source has changed since 2002.
Sources: Leroy S. (Mar 2002, the question), Vince S., Shawn M., Jim G. (Mar 2002) in softvelocity.products.c55ee.