Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / FileTransfer Object / AS400ReceiveFile Method
The name of a transfer request file that provides all necessary information about the transfer. Use an empty string to specify configuration information provided by AS/400 Data Transfer keywords.
Displays the file transfer in the Progress window if set to true.
Example
In This Topic
    AS400ReceiveFile Method
    In This Topic
    Transfers data from the host to the PC using the AS/400 data transfer protocol.
    Syntax
    expression.AS400ReceiveFile( _
       ByVal transferFile As String, _
       ByVal showStatus As Boolean _
    ) 
    where expression is a variable that represents a FileTransfer Object

    Parameters

    transferFile
    The name of a transfer request file that provides all necessary information about the transfer. Use an empty string to specify configuration information provided by AS/400 Data Transfer keywords.
    showStatus
    Displays the file transfer in the Progress window if set to true.
    Remarks
    This method is only relevant to 5250 sessions.
    Example
    This example performs a batch file transfer from a remote directory to a local folder.
    Sub TransferFilesReceive()
     
        Dim path As String
     
        path = Environ$("USERPROFILE") & "\Documents\" & "Test.xto"
     
        ThisIbmTerminal.FileTransfer.AS400ReceiveFile path, True
     
        
    End Sub
    See Also