wodSFTP API library - LastError Property
      
 

Description

Holds the last error returned by the method.


Return type

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


Syntax

long Sftp_GetLastError(void *Sftp, short *pVal);

The LastError function syntax has these parts:

Part Description
void *Sftp Handle of the created Sftp instance.
short *pVal Pointer 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.