RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.FindClass Function

Finds and returns a class that is derived from TPersistent.

Pascal
function FindClass(const ClassName: string): TPersistentClass;
C++
TPersistentClass FindClass(const AnsiString ClassName);

Call FindClass to locate a class type by name. FindClass searches the classes that the streaming system knows about. Classes can be registered with a call to RegisterClasses so that the streaming system will recognize that class in a stream and know how to construct it.  

If the requested class name cannot be found, FindClass raises an exception. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!