Applies to: ABC error class, posted in the Clarion 6 group. A reply calls the property private "in C6".
Problem
A third-party book on the ABC classes shows the line GlobalErrors.LogErrors=true for the Program Setup embed point of the global embeds. It fails to compile with an "invalid use of private data" message. The poster, working in a shop that still uses mostly Legacy templates, asked whether the line or the embed point was wrong.
Solution
- LogErrors is a private property, so it cannot be assigned from an embed. Use the method instead.
- The first attempt,
GlobalErrors.SetLogErrors = True, gave an unknown identifier because a method takes a parameter and is called with parentheses. - Call it with the value in the Program Setup global embed:
GlobalErrors.SetLogErrors(true)
GlobalErrors.SetSilent(true)
That compiled for the poster.
Caveats
- The thread confirms that it compiled; it does not say that the error log then wrote what he wanted.
- The poster could not find the line in the documentation he was reading; the replies point to the class methods.
- Which methods exist depends on the ABC class source of your build.
Today (2026)
Likely unchanged: the ABC error class exposes setter methods for such properties. Not re-tested; check the class header of your build for SetLogErrors.
Sources: Frank C. (Feb 2007, the question), Jon W. (Feb 2007), Sean C. (Feb 2007) in softvelocity.public.clarion6.