ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Loop used to display all the files found in a directory
Loop used to display all the files found in a directory
WINDEVJavaUser code (UMC) The following code is used to display in a list box (LIST_FileList) all the files found in a specified directory.
// --Click code on BTN_ListFile
// Declare the variable
ResFile is string
// The files found in the "C:\MyDirectories\MyFiles" directory
// are displayed in the "LIST_FileList" list
ResFile = fDir("C:\MyDirectories\MyFiles\*.*", frFile)
WHILE ResFile <> ""
ListAdd(LIST_FileList, ResFile)
ResFile = fDir("", frFile)
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/22/2022

Send a report | Local help