ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / FTP functions
  • Timeout
  • Required permissions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Closes the connection between the current computer and the FTP server (File Transfer Protocol). This connection was established by FTPConnect.
New in SaaS
A new syntax for manipulating variables of type ftpConnection is available from WINDEV Suite SaaS 2025 - Update 2.
Example
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst
// Connection to an FTP server
nConnection is int 
nConnection = FTPConnect("192.108.10.2")
...
// Disconnection
FTPDisconnect(nConnection)
New in SaaS
AndroidAndroid Widget
// Syntax not available in PHP
// Connect the current computer to the FTP server
MyFTPConnection is ftpConnection
MyFTPConnection.Server = "192.54.12.8"
FTPConnect(MyFTPConnection)
...
// Disconnection
FTPDisconnect(MyFTPConnection)
Syntax
<Result> = FTPDisconnect(<FTP connection>)
<Result>: Boolean
  • True if the disconnection was performed,
  • False if an error occurs. ErrorInfo returns more details.
<FTP connection>: Integer or ftpConnection variable
Remarks

Timeout

By default, all the FTP functions fail if the FTP server does not respond within 20 seconds. This time can be modified:
AndroidAndroid Widget

Required permissions

This function changes the permissions required by the application.
Required permission: INTERNET
This permission allows the applications to open the network sockets.
Related Examples:
The FTP functions Unit examples (WINDEV): The FTP functions
[ + ] Using the main FTP functions of WINDEV:
- Connect to a FTP server
- List the files and directories found on the FTP server
- Retrieve the files found on the FTP server
- Disconnect from a FTP server
Business / UI classification: Business Logic
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/25/2025

Send a report | Local help