FireDAC.Comp.Script.TFDScript.OnHostCommand
Delphi
property OnHostCommand: TFDHostCommandEvent read FOnHostCommand write FOnHostCommand;
C++
__property TFDHostCommandEvent OnHostCommand = {read=FOnHostCommand, write=FOnHostCommand};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FireDAC.Comp.Script.pas FireDAC.Comp.Script.hpp |
FireDAC.Comp.Script | TFDScript |
Description
The event fires when a script engine needs to execute external commands from the host OS.
Use the OnHostCommand event handler to execute external commands from the host OS launched by the script commands of the HOST SHELL. The event handler can do whatever an application needs.
- ACommand - a command to execute.
- ADoDefault - if True, then a default action is performed. The default action is the ShellExecute('open', ACommand) call.