PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
FTPParameter (Function)
In French: FTPParamètre
Modifies the behavior of standard FTP functions.
Example
// Enable the native implementation of FTP
FTPParameter(ftpParameterMode, 1)
// Enable the Windows implementation ("wininet") of FTP
FTPParameter(ftpParameterMode, 0)
Syntax
FTPParameter(<Option> , <Option Value>)
<Option>: Integer constant
Option to define:
ftpParameterModeUsed to choose the operating mode of FTP.
  • If <Option Value> is set to 0, the functions for FTP management use the "wininet" module of Windows except for the secure protocols (FTPIS, FTPES and SFTP). This mode corresponds to the default operating mode of FTP functions.
  • If <Option Value> is set to 1, the functions for FTP management use a native implementation of FTP that is independent of Windows, with UTF8 support.
    Caution: In this mode, FTPCommand is not supported. This mode is systematically used for the secure protocols (FTPIS, FTPES and SFTP).
<Option Value>: Integer
New value of option.
Remarks
The FTPxxx functions of WLanguage use by default the FTP functions of the Windows API (WININET.DLL). In Windows 8.1, these APIs do no longer return the expected results:
  • transfer not completed,
  • "unable to modify the directory to.".
While waiting for the standard FTP functions to be restored by Windows Update, the behavior of WLanguage FTPxxx functions can be modified so that they are no longer based on the FTP functions of Windows API. To do so, insert the following call in the FTP transfer process, before the existing call to FTPConnect:
FTPParameter(ftpParameterMode, 1)
Note: FTPParameter is applied to all the WLanguage FTPxxx functions, except for FTPCommand. If this one was used, it can be replaced by FTPSend or FTPGet according to the case.
Components
WINDEVWEBDEV - Server codeReports and Queries wd23com.dll
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment