ReceiveFile method

The ReceiveFile method receives the specified file from the host.

Syntax
object.ReceiveFile( LocalName, HostName )
Parameters
LocalName
Data type: String
The local file name used to receive the data from the iSeries host. If no path is given, the object uses the directory specified in the CurrentDirectory property. If no file name is given, the object uses the file name specified in the LocalFile property.
HostName
Data type: String
The iSeries host file used. For example, Library/File or Library/File(Member). If HostName is blank, the object uses the iSeries file specified in the RemoteFile property.
Returns

Data type: Long

If the transfer is successful, the return value is 0. To get the error message, use the ErrorMessage property. Refer to ErrorMessage property for more information.