# Template code to list only the files that use a derived FileManager class

**URL:** <https://forums.softvelocity.com/t/template-code-to-list-only-the-files-that-use-a-derived-filemanager-class/327>\
**Category:** Knowledge Base\
**Tags:** templates, unverified\
**Created:** [November 9, 2026, 12:50am UTC](https://forums.softvelocity.com/t/template-code-to-list-only-the-files-that-use-a-derived-filemanager-class/327 "2026-11-09T00:50:45Z")\
**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, 12:50am UTC](https://forums.softvelocity.com/t/template-code-to-list-only-the-files-that-use-a-derived-filemanager-class/327/1 "2026-11-09T00:50:45Z")

</div>

**Applies to:** ABC templates, as posted in the Clarion 6 group; the thread names no build.

**Problem**

An extension template was meant to offer only those `%File` entries of the app that use a derived base class rather than the default ABC one. The poster tried a `FROM(%File,~%UseDefaultABCBaseClass)` prompt and could not limit the list that way.

**Solution**

1. The filter does not work on `%File`. The per-file class settings hang off `%ClassItem`; the items for files are named `FileManager:<file>`. Look in ABOOP.TPW and in an exported TXA to see the symbols that depend on `%ClassItem`.
2. A poster supplied a small utility template that walks `%ClassItem` and writes the derived ones to a text file:

```auto
#FOR(%ClassItem)
#IF(Sub(%ClassItem,1,12) = 'FileManager:')
#IF(%UseDefaultABCBaseClass=0)
%ClassItem uses %ABCBaseClass
#ENDIF
#ENDIF
#ENDFOR

```

(the full utility also has the output file prompt, `#REMOVE`, `#CREATE` and `#CLOSE`).  
3. For the list of files the app really uses, `%UsedFile` holds them (the other names tried were `%UseFile`, `%UseFiles`); a loop over `%File` with `INLIST(%File, %UsedFile)` gave the used ones, but did not tell base from derived class.

**Caveats**

- The poster said he posted two solutions in the template group; they are not part of this thread.
- The utility writes a report; the thread does not turn it into a prompt list.

**Today (2026)**

Likely unchanged for the ABC chain; not re-tested. Confirm the symbol names in your build's template files.

**Sources:** Douglas J. (May 2008, the question), Geoff T., Shankar, Rick M. (May 2008) in softvelocity.public.clarion6.
