Programming with FTP OLE Automation

image\rwnprg32.gif LastError property

 

Syntax

Object.LastError

Data type

Long

 

Description

Returns the error code or server reply code from the last command. Normally, LastError returns 0 for success or an FTP client error value. Click here for a list of error codes. After you use the ExecuteFtpCommand method, the value of LastError is the FTP server's reply code instead. Values from 100 to 359 generally indicate success or other non-error condition information; values from 400 to 559 generally indicate failure. Click here for a list of standard FTP server reply codes .

Values

This property is read-only.

Notes

ยท Use LastErrorString to return the entire error string.

FTP Script SET Parameter Equivalent

ERROR-CODE