Tuto WINDEV 25
Part 7: Advanced programming 421 Overview The FTP (File Transfer Protocol) is a standard protocol used to transfer files from a computer to another one. One of the computers must be an FTP server. Several WLanguage commands allow you to transfer files by using this protocol with a server. These programming functions start with "FTP". WINDEV only proposes "client" functions for the FTP. A standard FTP server is required. The unit example named "The FTP functions" presents the operations that can be performed on the files found on an FTP server. ▶ Open the unit example named "The FTP functions". This example presents the main features that can be used on an FTP server. Connecting to an FTP server FTPConnect is used to connect to an FTP server. An FTP account (user name and password) is required to access an FTP server. ▶ Display the WLanguage events associated with the "Connection" Button control in "WIN_FTP": 1. Select the "Connection" Button control. 2. Press F2 to display the associated WLanguage code: // 1 - FTP address: corresponds to the FTP site // to which the application must connect. Ex: 192.108.10.2 sFTPAddress is string = EDT_FTP_Server // 2 - User name: if this name is not specified, // an "anonymous" connection will be used sUserName is string = EDT_User sUserPWD is string = EDT_Password // Connection to FTP server
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==