[fpc-pascal] Class type to package name?

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jul 21 15:16:44 CEST 2017


On Fri, 21 Jul 2017 04:54:04 -0400
Anthony Walter <sysrpl at gmail.com> wrote:

> When I register a component with the IDE it is installed from a package.
> The package has a name. I want to know the name of the package, given a
> class type of a component registered in the IDE.

You have to search the packages.
I added a utility function to make it more comfortable:

uses packageintf;

PackageEditingInterface.FindInstalledPackageWithUnit()

Mattias




More information about the fpc-pascal mailing list