Programming with Reflection

image\rwnprg32.gif FTPStartServer method

 

Syntax object.FTPStartServer [UserName], [Password], [HostName], [Options]

 

Description

Connects to a host server in preparation for FTP file transfers. Use FTPSendFile and FTPReceiveFile to transfer files. Use FTPStopServer to disconnect from the host FTP server.

If your settings file is not already configured for FTP protocol, use TransferDefaultProtocol to set the transfer protocol, and TransferPreset to set the host server type.

Most menu commands and all toolbar buttons are disabled when Reflection is in server mode.

Arguments

UserName Argument type: String
Optional
Specifies the user name. If this argument is omitted, Reflection uses the current FTP User Name (which can be set using the FTP tab of the File Transfer dialog box, or using the FTPUserName property). If no FTP User Name has been set, Reflection displays the FTP Log In dialog box unless rcNoLoginDialog is specified in the Options argument. If rcNoLoginDialog is specified, FTPStartServer returns an error when UserName is omitted and no FTP User Name has been set.. If rcAnonymous is specified in the Options argument, the UserName argument is ignored.

Password Argument type: String
Optional
Specifies the FTP password. If this argument is omitted, Reflection uses the current FTP Password (which can be set using the FTP tab in the File Transfer dialog box, or using the FTPPassword property). If no password has been set, Reflection displays the FTP Log In dialog box unless rcNoLoginDialog is specified in the Options argument. If rcNoLoginDialog is specified, FTPStartServer generates an error when Password is omitted and no password has been set.

HostName Argument type: String
Required
Specifies the host name or IP address. If this argument is omitted, the current value of FTPHostName is used. If this argument is omitted and no FTP host name has been set, the current host is used.

Options Argument type: Enumeration
Optional
Specifies additional, non-default behavior for the method. The possible values are:

 rcAnonymous

 Specifies that Reflection should use anonymous FTP when performing this transfer.

 rcNoLogInDialog

 Specifies that no FTP Log In dialog should appear if the FTP user name or password is not supplied.

 You can combine the two options adding these values. For example:

      .FTPStartServer , , , rcAnonymous+ rcNoLogInDialog.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command