LastError property
Returns an FTP client error value.
Syntax
Object.LastError
Return value type
Long
Return value
Returns the error code. Normally, LastError returns 0 for success or
an FTP client error value.
Here are some common errors (rcFTP_Error = 0x20000000):
- rcFTP_Error + 0x03: Failed to make a connection
- rcFTP_Error + 0x04: Open/Create local file error
- rcFTP_Error + 0x0E: FTP is not connected
- rcFTP_Error + 0x10: Invalid parameters passed in, such as "Invalid
host address", "Invalid username or password"
- rcFTP_Error + 0x18: Socket error, such as "Connection time
out" or "Windows sockets initialization failed"
- rcFTP_Error + 0x15: Cannot get file attribute
- rcFTP_Error + 0x1E: Cannot find file