FtsOnStatusChanged Event

This event is triggered by a change in the status of a transfer.

Syntax

NSFile_FtsOnStatusChanged

Parameters

This event has no parameters.

Remarks

The following code example shows how to use FtsOnStatusChanged to determine that a transfer was canceled. The File Transfer object is NSFile and the code in the subroutine will be called when the status of a file transfer changes. The change in this case is that a file transfer has "completed" (TransferStatus = 5) because it was canceled (Result = -2147467260).

Sub NSFile_FtsOnStatusChanged
   Canceled = (nsfile.TransferStatus = 5) And (nsfile.Result = -2147467260)
    If Canceled Then MsgBox "Transfer was canceled."
End Sub
© 1996-1998 Microsoft Corporation. All rights reserved.