Vcl.ExtActns.TDownLoadURL.ExecuteTarget
Delphi
procedure ExecuteTarget(Target: TObject); override;
C++
virtual void __fastcall ExecuteTarget(System::TObject* Target);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ExtActns.pas Vcl.ExtActns.hpp |
Vcl.ExtActns | TDownLoadURL |
Description
Creates the file specified by the Filename property and downloads the contents of URL to it.
ExecuteTarget is called automatically when the action fires in response to a user action (for example, when the user selects a menu item or presses a tool button that is linked to this action).
Target is the currently active object when the action fires.
ExecuteTarget ignores the Target parameter and looks up (on the internet) the URL specified by the URL property, creates the file specified by the Filename property, and writes the bits found at the specified URL to the file.
Periodically throughout this download process, TDownLoadURL generates an OnDownloadProgress event.