Web.Stencils.TWebStencilsProcessor.AddInitFunc
Delphi
procedure AddInitFunc(const AName: string; const AInitFunc: TWebStencilsInitFunc;
AOwned: Boolean = True); overload;
procedure AddInitFunc(const AName: string; const AInitFunc: TWebStencilsInitFunc;
AOwned: Boolean; const ALookupFunc: TWebStencilsLookupFunc); overload;
C++
void __fastcall AddInitFunc(const System::UnicodeString AName, const _di_TWebStencilsInitFunc AInitFunc, bool AOwned = true)/* overload */;
void __fastcall AddInitFunc(const System::UnicodeString AName, const _di_TWebStencilsInitFunc AInitFunc, bool AOwned, const _di_TWebStencilsLookupFunc ALookupFunc)/* overload */;
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
procedure function |
public | Web.Stencils.pas Web.Stencils.hpp |
Web.Stencils | TWebStencilsProcessor |
Beschreibung
Fügt eine neue Datenvariable mit dem Namen AName hinzu.
Ein Objekt wird vom Argument "AInitFunc" bereitgestellt. Eigenschaften des Objekts sind in der Vorlage anhand der Syntax '@name.property' verfügbar. Wenn AOwned "True" ist, ist der Prozessor der Eigentümer des Objekts.