PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Loop used to display all the files found in a directory
  • Loop used to display all the files found in a directory (WINDEV Mobile)
Loop used to display all the files found in a directory
WINDEVWEBDEV - Server codeReports and QueriesJavaPHPAjaxUser 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
Loop used to display all the files found in a directory (WINDEV Mobile)
Windows Mobile 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 "\MyDirectories\MyFiles" directory
// are displayed in the "FileList" list
ResFile = fDir("\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