unit Unit1;interfaceuses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, Data.Bind.EngExt, Fmx.Bind.DBEngExt, Data.Bind.Components, FMX.Layouts, FMX.Edit;type TForm1 = class(TForm) Edit1: TEdit; Edit2: TEdit; Edit3: TEdit; Label1: TLabel; BindingsList1: TBindingsList; BindScope1: TBindScope; procedure FormCreate(Sender: TObject); procedure Edit1Change(Sender: TObject); end;var Form1: TForm1;implementation{$R *.fmx}procedure TForm1.FormCreate(Sender: TObject);begin with TBindExpression.Create(BindingsList1) do begin ControlComponent := Label1; ControlExpression := 'Text'; SourceComponent := BindScope1; //把 BindScope1 指定为源组件, 之后可以在表达式中直接使用控件名 SourceExpression := 'Format("%s,%s,%s", Edit1.Text, Edit2.Text, Edit3.Text)'; Active := True; end; BindScope1.Active := True; // Edit2.OnChange := Edit1.OnChange; Edit3.OnChange := Edit1.OnChange;end;procedure TForm1.Edit1Change(Sender: TObject);begin BindingsList1.Notify(Sender, '');end;end.