FTP_SetMode

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > FTP (File Transfer Profotol) >

FTP_SetMode

 

Description

 

Sets the FTP transfer mode.

 

Syntax

 

n = FTP_SetMode(sMode)

 

Returns

 

Number

Return < 0 : An error has occurred. Call FTP_GetErrorStrin(n).

 

Parameters

 

Name

Type

Optional

Meaning

sMode

String

No

Pass "A" to specify ASCII mode

Pass "B" to specify binary mode.

 

Remarks

 

Since the FTP default is usually ASCII, it is good practice to always specify the transfer mode before the first call to FTP_GetFile or FTP_PutFile.

 

If unsure of the transfer mode, choose binary.

 

Restrictions

 

See also

 

Examples