System.Bindings.Expression.TBindingExpression.Compile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Compile; overload; virtual; abstract;
procedure Compile(const Objects: array of TComponent); overload;
procedure Compile(const Assocs: array of TBindingAssociation); overload;
procedure Compile(const AScope: IScope); overload;
procedure Compile(const AScopes: array of IScope); overload;
procedure Compile(const Objects: array of TComponent; const Assocs: array of TBindingAssociation; const Scopes: array of IScope); overload;

C++

virtual void __fastcall Compile() = 0 /* overload */;
void __fastcall Compile(System::Classes::TComponent* const *Objects, const int Objects_High)/* overload */;
void __fastcall Compile(const TBindingAssociation *Assocs, const int Assocs_High)/* overload */;
void __fastcall Compile(const System::Bindings::Evalprotocol::_di_IScope AScope)/* overload */;
void __fastcall Compile(const System::Bindings::Evalprotocol::_di_IScope *AScopes, const int AScopes_High)/* overload */;
void __fastcall Compile(System::Classes::TComponent* const *Objects, const int Objects_High, const TBindingAssociation *Assocs, const int Assocs_High, const System::Bindings::Evalprotocol::_di_IScope *Scopes, const int Scopes_High)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Bindings.Expression.pas
System.Bindings.Expression.hpp
System.Bindings.Expression TBindingExpression

Description

Realizes the actual compilation of the expression.

The Compile method realizes the actual compilation of the expression based on the script and real objects associations. There are six Compile overloaded methods.

The first Compile overloaded method supports no parameters and is a virtual abstract method.

The second Compile overloaded method compiles an expression and makes the relationship between Delphi components and expression objects based on the component names. Call Compile with the following parameter:

Parameter Meaning
Objects These components and their properties are used in the expression. The names of the components must match those of the expression objects.

Tip: There cannot be two components with the same name, nor with empty names.

The third Compile overloaded method compiles the expression based on the associations between Delphi objects and expression objects. Call Compile with the following parameter:

Parameter Meaning
Assocs An array of associations between Delphi objects and the corresponding expression objects used in the source of the expression.

The fourth Compile overloaded method compiles the expression based on the provided IScope. Call Compile with the following parameter:

Parameter Meaning
AScope The scope used by the compiler and the evaluator to resolve the object names and to determine their values.

The fifth Compile overloaded method compiles the expression based on the provided array of scopes. Call Compile with the following parameter:

Parameter Meaning
AScopes The array of scopes used by the compiler and the evaluator to resolve object names and to determine their actual values.

The sixth Compile overloaded method compiles the expression using all the parameters to determine the relationships between Delphi objects and expression objects. This version of the method gives you the possibility to specify associations between Delphi objects and expression objects in any possible manner. The compiler will use information in all the parameters. In this case, call Compile with the following parameters:

Parameter Meaning
Objects These components and their properties are used in the expression. The names of the components must match those of the expression objects.
Assocs An array of associations between Delphi objects and the corresponding expression objects used in the source of the expression.
Scopes An array of scopes used by the compiler and by the evaluator to resolve object names and to determine their actual values.

See Also