Programming with FTP OLE Automation
LastError property
Syntax |
Object.LastError |
Data type |
Long |
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 .
This property is read-only.
ยท Use LastErrorString to return the entire error string.
ERROR-CODE