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

FTP_SetMode

Previous pageReturn to chapter overviewNext page

 

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