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 */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
procedure function |
public | Web.Stencils.pas Web.Stencils.hpp |
Web.Stencils | TWebStencilsEngine |
説明
プロセッサで利用可能なスクリプト変数のリストにオブジェクトを追加し、スクリプトにデータを提供するのに使用される構成関数。
AddVar メソッドは、名前 AName を持つ新しいデータ変数を追加します。 AObject 引数は、オブジェクトを指定します。
メモ: オブジェクトのプロパティは、テンプレート内では
@name.property 構文で使用できます。public または published プロパティのみが利用可能です。