CuteFTP Professional User s Guide
MySite.AbortAsync abort all tasks
bContinue = false
end if
wend
str = "DONE, Total: " & MySite.AsyncTaskNumber & strNL
for i = 0 to MySite.AsyncTaskNumber 1 step 1
str = str & i & ": size: " & MySite.TransferredSize(i) &
", speed: " & MySite.Speed(i) & ", time left: " &
MySite.TimeLeft(i) & ", status: " & MySite.Status(i) &
strNL
next
MsgBox str
Retrieving the status of a transfer
Description
Use the Status property to determine whether a transfer is active or it is already finished
with success or error. This can be useful in combination with asynchronous commands or
during an interactive script. The Status property will return a string.
Syntax
String Object.Status (long taskIdx)
Parameters
This is the task index in the array of tasks created
TaskIdx
by asynchronous methods [0..
AsyncTaskNumber or 1 (last started)]
Return Values
Transfer action invoked but not
"WAIT"
initiated yet (followed by connecting)
"CANCELED"
Active transfer canceled by user
"FINISHED"
Transfer completed
Error in transfer (any possible client
"ERROR"
or server error)
Added to queue but no transfer
"SUSPENDED"
initiated yet
"SCHEDULED"
Item is scheduled for future transfer
An internal status used for navigation
"BLOCKED"
and does not pertain to active or
pending transfers. You can cancel
222
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved