|
Set the FTP server to connect to.
syntax
FTPSetServer(
ftpServerURL,
user,
password
)
Parameters
ftpServerURL
|
|
Type:
|
character
|
|
Specify the FTP server's URL (or IP address). If you specify an empty string, the connection will be established according to the FTP information specified in the File server action.
|
user
|
|
Type:
|
character
|
|
The username to use to log in to the FTP server.
|
password
|
|
Type:
|
character
|
|
This is the password used to log in to the FTP server.
|
Return Value
|
|
Type:
|
Boolean
|
|
FALSE - Failure. TRUE - Success.
|
Normally, the connection will be made according to the FTP information specified in the File server action, but by using the FTPSetServer method, you can set the FTP server to connect to from the client. (The FTP server can be changed any number of times while online.)
|
Example
In case of synchronous communication
|
event OnInitialize()
{
this.FTPSetServer("ftp.xxx.co.jp", "user", "password");
}
|
If you want to revert to specifying the File server action, specify an empty string as follows:
|
this.FTPSetServer("", "", "");
|
|
reference
FTPSetServer
FTPSendFile
FTPAppendFile
FTPReceiveFile
FTPRenameFile
FTPDeleteFile
FTPMakeFolder
FTPDeleteFolder
|