<< back to sysax.com Product page

3.2. Checking connection status

The IsFTPSuccess method can be used to check the status of any method that begins with FTP. This method can be used to check if the connection to the remote host was successful.

Exhibit 3.5. IDL Definition of method to check status of methods that start with FTP


HRESULT IsFTPSuccess ([out, retval] VARIANT_BOOL *f_is_success);


Exhibit 3.6. Example usage of method to check status of methods that start with FTP (VBScript)


'check if the connection was successful
If app.IsFTPSuccess Then
  'connection was successful
End If