Programming with Reflection

image\rwnprg32.gif IndSendFile method

 

Syntax object.IndSendFile LocalFile, HostFile, Type, ExistsOption, ShowStat

 

Description

Transfers a file from the PC to the host, using the IND$FILE protocol.

Arguments

LocalFile Argument type: String
Specifies a local file. Provide complete path information—otherwise the file can only be found if it's in the current directory. You cannot use wildcard characters to send multiple files, as you can when you use the Transfer screen.

HostFile Argument type: String
Specifies a name for the file being transferred. This name must comply with host file naming conventions. You cannot use an empty string.

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 HostFile argument already exists:

 rcAskUser

 Prompts the user to overwrite the existing file, append new data to the existing file, or terminate the transfer. An error results if the user then clicks Cancel.

 rcOverwrite

 Replaces the existing file.

 rcOpenError

 Causes IndSendFile to return an error .

 rcAppend

 Adds the local file contents to an existing host 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.

Comments

If you're having trouble getting a transfer to work, make sure the XfrHostSys property is set to the appropriate value.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command