Event OnNeedInfo
Occurs when there is any information that needed by component
type TMFtpInfoNeeded = (niAccount, niHost, niLocalFile, niOverwrite, niPassword, niUser);property OnFtpNeedInfo: TMFtpInfoNeededEvent;
Applied to
Example
procedure TForm1.MyFtpNeedInfo; begin case need of { set default account, username and password } niAccount: Value := 'guest'; niUsername: Value := 'anonymous'; niPassword: Value := 'guest@microsoft.com'; { determine the local name of the file being downloaded } niLocalFile: begin with SaveDialog1 do begin Filter := 'All Files|*.*'; Filename := Value; if Execute then Value := Filename; end; end; { determine
whether the file will be overwritten } |