InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / FileTransfer Object / CancelTransfer Method
In This Topic
    CancelTransfer Method (FileTransfer)
    In This Topic
    Attempts to cancel a file transfer in progress for any of the supported transfer protocols (Kermit, WRQ/Reflection, Xmodem, or Zmodem) by shutting down the host program.
    Syntax
    expression.CancelTransfer() As ReturnCode
    where expression is a variable that represents a FileTransfer Object

    Return Value

    One of the following ReturnCode enumerated values.

    Member Description
    Cancelled Cancelled.
    Error Error.
    PermissionRequired Permission is required.
    Success Success.
    Timeout Timeout condition.
    Truncated The text is truncated.

    Remarks
    Use AbortTransfer if you think the host program has stopped responding.

    This method is not likely to be useful in a macro because all transfer methods must complete execution before subsequent commands are executed.

    AbortTransfer can be useful for mapping to custom items such as toolbar buttons, keystrokes or events. You can also use this method if you are using automation. For example, you could use stand-alone Visual Basic .NET to create a form with a Cancel Transfer button to cancel a transfer in progress.

    See Also