# GlobalErrors.LogErrors = True fails to compile with "invalid use of private data"

**URL:** <https://forums.softvelocity.com/t/globalerrors-logerrors-true-fails-to-compile-with-invalid-use-of-private-data/651>\
**Category:** Knowledge Base\
**Tags:** templates, unverified\
**Created:** [November 9, 2026, 1:11am UTC](https://forums.softvelocity.com/t/globalerrors-logerrors-true-fails-to-compile-with-invalid-use-of-private-data/651 "2026-11-09T01:11:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 1:11am UTC](https://forums.softvelocity.com/t/globalerrors-logerrors-true-fails-to-compile-with-invalid-use-of-private-data/651/1 "2026-11-09T01:11:52Z")

</div>

**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**

1. LogErrors is a private property, so it cannot be assigned from an embed. Use the method instead.
2. The first attempt, `GlobalErrors.SetLogErrors = True`, gave an unknown identifier because a method takes a parameter and is called with parentheses.
3. Call it with the value in the Program Setup global embed:

```auto
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.
