ABCFree ProcessQuietTakeNoRecords gives "Syntax error: Invalid use of PRIVATE data"

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

  1. Remove the ,PRIVATE attribute on OpenFailed in ABREPORT.INC. That fixes the compile error.
  2. Alternative from the same reply, by guess: enter POST(Event:CloseWindow); RETURN before PARENT.TakeNoRecords() in ThisWindow.TakeNoRecords().
  3. Without the template: a RETURN in 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.
  4. 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.