Written by

Question CJ H · Sep 26, 2017

Given a class name, how to get all the subclasses

I have a class name stored as %String,

How could I get the names of all its child classes?

Thanks you.

Comments

Lexi Hayden · Sep 26, 2017

select name from %Dictionary.CompiledClass where Super='yourclassnamehere'

0
Eduard Lebedyuk  Sep 27, 2017 to Lexi Hayden

This condition is insufficient for multi-level inheritance (C is a subclass of B, B is subclass of A. So C is subclass of A but Super wouldn't show this information). More on that in here.

0