Back to product page

LastError function


Holds the last error returned by the method.

Type

A Long value. If successful, 0 is returned, otherwise error as specified here

Syntax

  • C
long Sftp_GetLastError(void *Sftp, short *pVal);
The LastError(void *Sftp,short *pVal) syntax has these parts:
void *SftpHandle of the created Sftp instance.
short *pValPointer to a variable that will receive the last error.

Remarks

When working in scripting environments, such as ASP or PowerBuilder, you are unable to retrieve information about any errors returned by a previously executed method. The GetLastError function has been provided to enable you to read the last error that occurred. This is the same value that is provided by the Done callback.

This property is new since version 1.0.2.4.

Platforms

Windows