FtsOnStatusChanged Event

Description

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

Syntax
Private Sub object_FtsOnStatusChanged 

ParameterDescription
This event has no parameters.

Remarks

The following code example shows how to use FtsOnStatusChanged to determine that a transfer was cancelled. 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 cancelled (Result = -2147467260).


Sub NSFile_FtsOnStatusChanged
	Cancelled = (nsfile.TransferStatus = 5) And (nsfile.Result = -2147467260)
 	If Cancelled Then MsgBox "Transfer was cancelled."
End Sub

See Also

Return to File Transfer Reference.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.