Difference between revisions of "TFtpClient.Binary"

From Overbyte
Jump to navigation Jump to search
Line 6: Line 6:
  
 
'''Description'''<br>
 
'''Description'''<br>
Property used to set whether files are transferred in either binary or ASCII mode.<br>
+
Property used to set whether files are transferred in either binary or ASCII mode. Binary has no effect until ''TypeSet'' or ''TypeSetAsync'' have been successfully called.
  
Binary has no effect until ''TypeSet'' or ''TypeSetAsync'' have been successfully called.<br><br>
+
''TypeSetBinary'', ''TypeSetBinaryAsync'', ''TypeSetAscii'', and ''TypeAsciiAsync'' can perform these steps in one call.
 +
 
 +
<br><br>
  
 
'''Example'''<br>
 
'''Example'''<br>

Revision as of 22:45, 10 September 2006

Declaration
property Binary : Boolean;

Default Value
True

Description
Property used to set whether files are transferred in either binary or ASCII mode. Binary has no effect until TypeSet or TypeSetAsync have been successfully called.

TypeSetBinary, TypeSetBinaryAsync, TypeSetAscii, and TypeAsciiAsync can perform these steps in one call.



Example

   FtpClient1.Binary := True;
   if (FtpClient1.TypeSet) then
     Application.MessageBox('Transfer mode set to Binary', 'FTP', MB_OK);