API:FireDAC.Comp.Client.TFDCommand.OnCommandChanged

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCommandChanged: TNotifyEvent read FOnCommandChanged write FOnCommandChanged;

C++

__property OnCommandChanged;

Properties

Type Visibility Source Unit Parent
event published
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCommand

Description

The event that fires after CommandText is changed.

FireDAC.Comp.Client.TFDCommand.OnCommandChanged inherits from FireDAC.Comp.Client.TFDCustomCommand.OnCommandChanged. All content below this line refers to FireDAC.Comp.Client.TFDCustomCommand.OnCommandChanged.

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