FireDAC.Comp.Client.TFDCustomCommand.OnCommandChanged

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCommandChanged: TNotifyEvent read FOnCommandChanged write FOnCommandChanged;

C++

__property System::Classes::TNotifyEvent OnCommandChanged = {read=FOnCommandChanged, write=FOnCommandChanged};

Properties

Type Visibility Source Unit Parent
event public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomCommand

Description

The event that fires after CommandText is changed.

The OnCommandChanged fires after CommandText is changed.

Example

procedure TForm1.ADCommand1CommandChanged(ASender: TObject);
begin
  if ADCommand1.FindParam('ID') <> nil then
    ADCommand1.FindParams('ID').AsInteger := 100;
end;

See Also