Web.Stencils.TWebStencilsEngine.AddVar
Delphi
procedure AddVar(const AName: string; AObject: TObject; AOwned: Boolean = True); overload;
procedure AddVar(const AName: string; AObject: TObject; AOwned: Boolean;
const ALookupFunc: TWebStencilsLookupFunc); overload;
C++
void __fastcall AddVar(const System::UnicodeString AName, System::TObject* AObject, bool AOwned = true)/* overload */;
void __fastcall AddVar(const System::UnicodeString AName, System::TObject* AObject, bool AOwned, const _di_TWebStencilsLookupFunc ALookupFunc)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Web.Stencils.pas Web.Stencils.hpp |
Web.Stencils | TWebStencilsEngine |
Description
Configuration function used to add objects to the list of script variables available to the processor and provide data to the script.
The AddVar method adds a new data variable with an AName name. The AObject argument specifies an object.
Note: Properties of the object are available in the template using the
@name.property
syntax. Only public and published properties are available.