API:System.Bindings.ExpressionDefaults.TBindingExpressionDefault.Compile
Delphi
procedure Compile; overload; override;
C++
virtual void __fastcall Compile()/* overload */;
inline void __fastcall Compile(System::Classes::TComponent* const *Objects, const int Objects_High){ System::Bindings::Expression::TBindingExpression::Compile(Objects, Objects_High); }
inline void __fastcall Compile(const System::Bindings::Expression::TBindingAssociation *Assocs, const int Assocs_High){ System::Bindings::Expression::TBindingExpression::Compile(Assocs, Assocs_High); }
inline void __fastcall Compile(const System::Bindings::Evalprotocol::_di_IScope AScope){ System::Bindings::Expression::TBindingExpression::Compile(AScope); }
inline void __fastcall Compile(const System::Bindings::Evalprotocol::_di_IScope *AScopes, const int AScopes_High){ System::Bindings::Expression::TBindingExpression::Compile(AScopes, AScopes_High); }
inline void __fastcall Compile(System::Classes::TComponent* const *Objects, const int Objects_High, const System::Bindings::Expression::TBindingAssociation *Assocs, const int Assocs_High, const System::Bindings::Evalprotocol::_di_IScope *Scopes, const int Scopes_High){ System::Bindings::Expression::TBindingExpression::Compile(Objects, Objects_High, Assocs, Assocs_High, Scopes, Scopes_High); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected public |
System.Bindings.ExpressionDefaults.pas System.Bindings.ExpressionDefaults.hpp |
System.Bindings.ExpressionDefaults | TBindingExpressionDefault |
Description
Realizes the actual compilation of the expression.
System.Bindings.ExpressionDefaults.TBindingExpressionDefault.Compile inherits from System.Bindings.Expression.TBindingExpression.Compile. All content below this line refers to System.Bindings.Expression.TBindingExpression.Compile.
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. |