Back to product page

LastError property


Returns last error that occured.

Type

A Long value. Represents error code of last error that occurred.

Syntax

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

Remarks

When working in scripting environments, such as ASP or PowerBuilder, you are unable to retrieve information about possible error that was returned by previous executed method, you can use LastError property to read error that occurred. This is the same value that was provided by Done event.

To get string representation of the error, you can use code like this:
 
 
Debug.Print Ftp1.ErrorText(Ftp1.LastError)
 


Platforms

Windows