RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebModuleList.AddModuleName Method

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

Pascal
function AddModuleName(const AName: string): TComponent; override;
C++
virtual __fastcall TComponent * AddModuleName(const AnsiString AName);

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

 

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