RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractWebModuleList.AddModuleClass Method

Creates a new Web module, given its class, and adds it to the Items property array.

Pascal
function AddModuleClass(AClass: TComponentClass): TComponent; virtual; abstract;
C++
virtual __fastcall TComponent * AddModuleClass(TComponentClass AClass) = 0;

AddModuleClass searches for a Web module factory that can create a Web module of the specified class. If it finds a match, it instantiates the Web module and adds it to the Items property array. 

AClass is a class reference to the Web module you want to instantiate. It should not match the class type of any Web module already listed in the Items property array. 

AddModuleClass returns the new Web module instance. If the Factory property array does not include a Web module factory that can create a Web module of the specified class, AddModuleClass returns nil (Delphi) or NULL (C++).

Note: In TAbstractWebModuleList, AddModuleClass is abstract or, in C++ terminology, pure virtual, meaning it has no implementation. Descendant classes override this method to provide an implementation.
 

 

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