Sign in Join
FPDoc Onlineexperiment

FindClass function

In unit Classes

Returns the class pointer of a class with given name.

Declaration

pascal
function FindClass(const AClassName: string): TPersistentClass
 ; overload

Description

FindClass searches for the class named ClassName in the list of registered classes and returns a class pointer to the definition. If no class with the given name could be found, an exception is raised.

The GetClass function does not raise an exception when it does not find the class, but returns a Nil pointer instead.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.