System.Bindings.Outputs.TBindingOutput.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Add(AScope: IScope; const Expression: string); overload;
procedure Add(AObject: TObject; const PropertyName: string); overload;

C++

void __fastcall Add(System::Bindings::Evalprotocol::_di_IScope AScope, const System::UnicodeString Expression)/* overload */;
void __fastcall Add(System::TObject* AObject, const System::UnicodeString PropertyName)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Bindings.Outputs.pas
System.Bindings.Outputs.hpp
System.Bindings.Outputs TBindingOutput

Description

Adds a scope and an expression to the outputs.

The Add method adds a scope and an expression to the outputs. There are two Add overloaded methods.

Call the first Add overloaded method with the following parameters, to create an output regarding the compilation and evaluation of an expression. An expression needs a scope from where to get the input elements, so, based on these given parameters, the first Add overload adds an output generated after the given expression is evaluated.

Parameter Meaning
AScope The scope to be used in the string expression
Expression The string expression to be evaluated

Call the second Add overloaded method with the following parameters, in order to add the specified output to the outputs map:

Parameter Meaning
AObject The object to set when assigning output value
PropertyName The property to set when assigning output value

See Also