Programming with Reflection
IndReceiveFile method
Syntax object.IndReceiveFile LocalFile, HostFile, Type, ExistsOption, ShowStat
Transfers a file from the host to the PC, using the IND$FILE protocol.
LocalFile Argument type: String
Specifies a name for the PC file to receive the host data. Include complete path information.
HostFile Argument type: String
Specifies a host file.
Type Argument type: Enumeration
Specifies what type of file is being transferred. The values are:
rcXfrASCII
Use this value for text files with no special formatting.
rcXfrBinary
Use this value for program and application files and for files with special formatting.
ExistsOption Argument type: Enumeration
Specifies what to do if the file specified in the LocalFile argument already exists:
rcAskUser
Prompts the user to overwrite the existing file, append new data to the existing file, or cancel the transfer. An error results if the user then clicks Cancel.
rcOverwrite
Replaces the existing file.
rcOpenError
Causes IndReceiveFile to return an error.
rcAppend
Adds the host file contents to an existing local file.
ShowStat Argument type: Boolean
Use rcYes to display the Transfer in Progress window while the transfer is in progress, or rcNo to not display the Transfer in Progress window.
If you're having trouble getting a transfer to work, make sure the XfrHostSys property is set to the appropriate value.