Back to product page

LastError property


Holds the last error returned by the method.

Type

An Integer value. Holds the last error returned.

Syntax

  • Basic
object.LastError
The LastError(object) syntax has these parts:
objectAn expression evaluating to an object of type wodSFTP.

Remarks

When working in scripting environments such as ASP or VBS, you are unable to retrieve information about errors in the previous method by using the Done event. Instead you can access the LastError property to find out which error occurred. This is the same value provided by the Done event.

To get a string representation of the error, you can use the following code:
 
     Debug.Print Sftp1.ErrorText(Sftp1.LastError)
 


Platforms

Windows