DerivedClasses

concerns

The DerivedClasses function returns all derived classes of a specified class.

 

Syntax

DerivedClasses(ClassName [, Restriction])

Return value

Type

Description

String()

String list of class names

Parameter

Use

Name

Type

Passing

Description

Required

ClassName

String

ByVal

Name of the class from which to determine the derived classes

Optional

Restriction

String

ByVal

Expression that restricts the list of derived classes

All class names derived from ClassName are written to the string list.

If the expression Restriction is specified, the list of derived classes can be restricted. Constants and initial values of variables can be used for this purpose.

Example:

 

Dim s As String

 

For Each s In DerivedClasses("Product parts", "Price > 1000")

   (MsgBox s) If s <> ""

EndFor

A list of derived classes is built, whose constant price has a value of > 1000.