FireDAC.Comp.Script.TFDScript.OnHostCommand

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: event
Visibility: published
Source:
FireDAC.Comp.Script.pas
FireDAC.Comp.Script.hpp
Unit: FireDAC.Comp.Script
Parent: TFDScript

Delphi

property OnHostCommand: TFDHostCommandEvent read FOnHostCommand write FOnHostCommand;

C++

__property TFDHostCommandEvent OnHostCommand = {read=FOnHostCommand, write=FOnHostCommand};

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.

See Also