RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebModuleList.AddModuleClass Method

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

Pascal
function AddModuleClass(AClass: TComponentClass): TComponent; override;
C++
virtual __fastcall TComponent * AddModuleClass(TComponentClass AClass);

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++). 

 

AddModuleName 

AddModule 

Items 

Factory 

FindModuleClass

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!