| 1.Properties:Back
to top |
Busy:
Indicates whether an operation is in progress.
If an operation is in progress this value is true, otherwise false. |
Connected:
Checks if client is connected to FTP server,return true on success
and false on failure; |
ErrorInfo:
Detailed description of error; |
ErrorNumber:
The number of error;Click
here to open error code listing |
FileSize:
The total size of the file in transferring; |
FileTypeAllow:
The file type allowed to transfer,each file type is separated by ';',such
as "txt;doc"; |
FileTypeForbid:
The file type forbidden to transfer,each file type is separated by
';',such as "asp;aspx"; |
|
FtpState:
The state code of ftp server,it is always used in event 'OnStateChange';
The following are main items:
| ftpFreeState |
| ftpConnecting |
| ftpConnected |
| ftpAuthentication |
| ftpUserLoggedIn |
| ftpUploadInProgress |
| ftpUploadCompleted |
| ftpDownloadInProgress |
| ftpDownloadCompleted |
| ftpRetrievingDirectoryInfo |
| ftpDirectoryInfoRetrieved |
| ftpQuiting |
| ftpClosed |
|
KeepConnSecond:
Check connection every "KeepConnSecond" seconds; |
LeftTime:
The transfer remaining time of current file, the unit is second; |
LocalPath:Back
to top
The file path to be uploaded or the save path of download; |
MaxChunkSize:
Maximum block size in transfer,unit is KB, default is 1000KB;
The actual block size is adjusted from 50KB to MaxChunkSize by ActiveX
Control automatically according to bandwidth. |
MaxSize:
The maximum file size of a transfer, the unit is MB; |
MessageInfo:
The information response from ftp server.
It is always used in event 'OnServerMessage'; |
OverWrite:
Specifies whether to overwrite existing files.
1:Default:Display Confirm File Replace dialog;

2.If set to true,the file will be replaced;
3.If set to false,the transfer will resume automatically;
You can also control the dialog by property ReplaceSetting;
|
PassiveMode:
Specifies whether to use passive mode, default is true; |
PassWord:Back
to top
The password to login to the FTP server; |
Percent:
The percent of the file transfer completed;
It is always used in event 'OnTransfer'; |
QueueIndex:
The sequence of transferring file on transfer queue.
It is always used in event 'OnTransfer'; |
QueueTotal:
The number of files on transfer queue.
It is always used in event 'OnTransfer'; |
RaiseErrorEvent:
Specifies whether to raise the event 'OnError',default is false; |
ReDoTimes:
Automatic reconnect and resume transfer how many times when the connection is lost or broken. |
RemotePath:
The remote file path on server. |
RemotePort:
The port number of the server, default is 21; |
RenameRule:
The rule of rename a file automatically;
Default is "{oldname}1",it means that {oldname} will be
replaced with old file name;
For example:
If the old file name is "test.htm",the new file name will
become "test1.htm" after rename. |
|
ReplaceSetting:
The value of 'ReplaceSetting' is used to control the buttons in
'Confirm File Replace'.
The selectable value of 'ReplaceSetting':
0:Show 'Confirm file Replace' dialog;

1:Overwrite;
2:Resume;
3:Skip;
4:Rename;(The rule of rename is set by property 'RenameRule')
|
ServerName:
Host name of the server; |
Speed:
Transfer speed, the unit is bytes/s;
You can use the method "FormatFileSize(FtpLibrary1.Speed)/s"
convert the unit to "KB/s" or "MB/s";
It is always used in event 'OnTransfer'; |
Text:Back
to top
Gets or sets the message text of the ocx;
The step of supporting other languages:
1.Get all the words of the ocx to a string variable by property 'FtpLibrary1.Text';
2.Translate the words from english into other languages.
3.Set the translated words to property 'FtpLibrary1.Text' for other languages supported.
|
TimeOut:
Specifies the timeout in seconds for the control and data connection,
default is 30 seconds; |
TransferSize:
The size of the file transfer completed,the unit is byte;
It is always used in event 'OnTransfer'; |
UserName:
The user name to login to the FTP server, default is anonymous; |
Version:
The version of ActiveX control; |