FtpSetType

The FtpSetType method changes the file transfer type on the FTP server.

Syntax:

>>-- myftpobj~FtpSetType(--+--"ASCII"---+--)-----------------------------><
                           +--"BINARY"--+

Arguments:

'ASCII'

Changes the file transfer type on the FTP server to ASCII. Only the first letter of the argument is significant and it is not case-sensitive.

'BINARY'

Changes the file transfer mode on the FTP server to binary. Only the first letter of the argument is significant and it is not case-sensitive.

Return Values:

A value of 0 indicates successful execution of the method. The value -1 indicates an error. You can get the specific error code by inspection of the method FtpErrno. Possible values:

FTPCOMMAND

The internal FTP command or the arguments to the method are in error.

If an error is returned the type remains unchanged.