wodSFTP ActiveX Control - LastError Property
      
 

Description

Holds the last error returned by the method.


Property type

An Integer value.  Holds the last error returned.


Syntax

object.LastError



The LastError Property syntax has these parts:

Part Description
object An 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)