InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / FileTransfer Object / FTPTransferType Property
In This Topic
    FTPTransferType Property
    In This Topic
    Returns or specifies the transfer type for FTP transfers from the File Transfer dialog box.
    Syntax
    expression.FTPTransferType As TransferTypeOption
    where expression is a variable that represents a FileTransfer Object

    Property Value

    A TransferTypeOption value
    Remarks
    This property is automatically set every time you perform an FTP transfer from the dialog box. The value of this property becomes the default for the next transfer from the File Transfer dialog box. This property has no effect on programmatic transfer; if you don't explicitly specify a transfer type with FTPSendFile or FTPReceiveFile, the default is always ASCII. This property is relevant only for transfers that use the FTP protocol.

    The default value is TransferTypeOption.Binary.

    TransferTypeOption.ASCII

    Sets the default transfer type for FTP transfers from the File Transfer dialog box to ASCII. If the FTPTranslateCharacters property is set to true, the following translations are performed: Character set translations (as specified on the Emulation tab in the Terminal Setup dialog box). Relevant ASCII File Translation options (as specified on the Translation tab in the File Transfer Setup dialog box).

    If FTPTranslateCharacters is set to false, record separator characters may still be translated to carriage return/linefeed sequences (if the ConvertSeparatorToEOL property is set to true), and a Ctrl-Z character may be appended to the end of the file (if the WriteCtrlZAsEOF property is set to true), but no other translations are performed.

    TransferTypeOption.Binary

    Sets the default transfer type for FTP transfers from the File Transfer dialog box to binary. Does not translate data in the transferred file.

    TransferTypeOption.AutoDetect

    The transfer type is determined by the file extension. Use these properties to determine which file extensions are linked to which transfer type: TransferAutoDetectDefaultType; TransferAutoDetectASCIIExtensionList; and TransferAutoDetectBinaryExtensionList.

    See Also