RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDownLoadURL.ExecuteTarget Method

Creates the file specified by the Filename property and downloads the contents of URL to it.

Pascal
procedure ExecuteTarget(Target: TObject); override;
C++
virtual __fastcall ExecuteTarget(TObject * Target);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!