RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractWebModuleList.AddModuleName Method

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

Pascal
function AddModuleName(const AClass: string): TComponent; virtual; abstract;
C++
virtual __fastcall TComponent * AddModuleName(const AnsiString AClass) = 0;

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

AName is the name of the Web module you want to instantiate. It should not match the name 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 name, AddModuleClass returns nil (Delphi) or NULL (C++).

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

 

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