For information about Globalscape, visit www.globalscape.com. |
Use the ErrorDescription property to get the string describing the last error condition. It may consist of some messages taken from the transfer log.
Syntax
String Object.ErrorDescription (long taskIdx)
Parameter
|
TaskIdx |
This is a task index in the array of tasks created by the various asynchronous methods. The default value of taskIdx is - 1 which specifies all the asynchronous tasks in array. TaskIdx should be between 0 and AsyncTaskNumber minus one. |
Example
Set MySite = CreateObject("CuteFTPPro.TEConnection")
MySite.Option("ThrowError") = false 'disable ATL exceptions
if cbool(MySite.Connect) then
MsgBox "Connected OK"
else
MsgBox "Error! " & MySite.ErrorDescription